Я хочу назвать действие контроллера, я использую Botman Studio и Laravel Framework:
<?php
namespace App\Conversations;
use Illuminate\Foundation\Inspiring;
use BotMan\BotMan\Messages\Incoming\Answer as BotManAnswer;
use BotMan\BotMan\Messages\Outgoing\Question as BotManQuestion;
use BotMan\BotMan\Messages\Outgoing\Actions\Button;
use BotMan\BotMan\Messages\Conversations\Conversation;
use BotMan\BotMan\Messages\Outgoing\OutgoingMessage;
use App\config\botman\config;
use redirect;
use App\Http\Controllers\Controller;
class sss extends Conversation
{
/**
* Start the conversation.
*
* @return mixed
*/
public function run()
{
$this->in();
}
public function in()
{
$this->say('Hello !');
Redirect::action('PdfController@invoice');
}
}
?>
Это строка, которую мне нужно изменить:
Redirect :: action ('PdfController @ invoice');
Это чатбот, поэтому он имеет такой синтаксис (Botman studio)