![](/img/trans.png)
[英]Laravel Botman issue - Can't call functions from the same class after nesting inside botman class
[英]I have unknown BotManQuestion class from botman article
在 laravel 9 應用程序中,我按照https://christoph-rumpel.com/2018/05/how-i-built-the-laravelquiz-chatbot-with-botman-and-laravel文檔添加 botman。 這些文章有 3 個使用 BotManQuestion class,我有一個錯誤:
Class "App\Library\BotManQuestion" not found
BotManQuestion - 看起來不像自定義或 model class 我沒有在項目中或在這個https://botman.io/2.0/welcome文檔中找到它。 本文中還使用了未知的 BotManAnswer class。
任何想法是什么樣的 class 可以嗎?
我用命令安裝了 botman:
composer require botman/botman
composer require botman/driver-web
所以我有 "botman/botman": "^2.7" 和 "botman/driver-web": "^1.5"...
謝謝!
添加聲明:
use BotMan\BotMan\Messages\Incoming\Answer as BotManAnswer;
use BotMan\BotMan\Messages\Outgoing\Question as BotManQuestion;
解決了這個錯誤...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.