使用Laravel Scout对Laravel进行弹性搜索

使用Laravel Scout对Laravel进行弹性搜索,laravel,Laravel,我正在使用LaravelScout为Laravel的弹性搜索创建演示。我已经使用这个网站作为参考=。我已经安装了 ElasticSearch,Java版本到机器并遵循上面链接的步骤,但当我运行命令时 -php artisan scout:import “App\Account” 我出错了 Symfony\Component\Debug\Exception\FatalThroTableError:类 找不到“应用\帐户” 在 /home/ashwinibhandare/Code/Elastic

我正在使用LaravelScout为Laravel的弹性搜索创建演示。我已经使用这个网站作为参考=。我已经安装了 ElasticSearch,Java版本到机器并遵循上面链接的步骤,但当我运行命令时

-php artisan scout:import “App\Account” 
我出错了

Symfony\Component\Debug\Exception\FatalThroTableError:类 找不到“应用\帐户”

在 /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/scout/src/Console/ImportCommand.php:35 31 |公共函数句柄(Dispatcher$事件) 32| { 33 |$class=$this->argument('model'); 34| 35 |$model=新的$class; 36| 37 |$events->listen(ModelsImported::class,function($event)use($class){ 38 |$key=$event->models->last()->getScoutKey(); 三十九|

异常跟踪:

1
Laravel\Scout\Console\ImportCommand::handle(对象(照明\事件\调度程序)) /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/framework/src/illusted/Container/BoundMethod.php:29

2调用用户函数数组() /home/ashwinibhandare/Code/Elasticsearch/vendor/laravel/framework/src/illusted/Container/BoundMethod.php:29

请使用参数-v查看更多详细信息


我不是经验丰富的人,你能告诉我哪里不对吗

你是否用软件包创建了
帐户
应用程序
?是的,帐户类已经创建。你可以看到下面的类我已经解决了问题,这是一些错误你应该解释你的错误,我遇到了同样的问题:(