laravel安装scout步骤:
1 使用composer包管理器安装laravel/scout库
composer require laravel/scout
2 config/app.php中providers数组添加
Laravel\Scout\ScoutServiceProvider::class
3 artisan创建scout的配置
php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"
4 config/scout.php 文件生成完成,可以查看到内容为
'driver' => env('SCOUT_DRIVER', 'algolia')