Skip to content

Instantly share code, notes, and snippets.

@flexgrip
Created October 4, 2018 16:06
Show Gist options
  • Select an option

  • Save flexgrip/1b544def8c6a23af4f93abc1441f6477 to your computer and use it in GitHub Desktop.

Select an option

Save flexgrip/1b544def8c6a23af4f93abc1441f6477 to your computer and use it in GitHub Desktop.

Revisions

  1. flexgrip created this gist Oct 4, 2018.
    10 changes: 10 additions & 0 deletions Webview.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <?php
    $template = ButtonTemplate::create($message->attachment->payload->text);
    Log::info('Inside the button template1';
    $template->addButton(
    ElementButton::create($btn->title)
    ->url(
    $webview_url.'/adAudit/'.$this->optin->id.'/'.$delivery->fresh()->uuid
    )
    ->heightRatio(ElementButton::RATIO_FULL)
    ->enableExtensions());