安装laravels发现的问题

安装命令

composer require "hhxsv5/laravel-s:~3.5.0" -vvv

遇到问题

[root@lsujkgpy1c Laravel]# php artisan laravels publish


Command "laravels" is not defined.

需要配置config/app.php

'providers' => [
    Hhxsv5\LaravelS\Illuminate\LaravelSServiceProvider::class,
],
配置后问题解决

[root@lsujkgpy1c Laravel]# php artisan laravels publish
Copied file [/docker/www/Laravel/vendor/hhxsv5/laravel-s/config/laravels.php] To [/docker/www/Laravel/config/laravels.php]
Linked file [/docker/www/Laravel/vendor/hhxsv5/laravel-s/bin/laravels] To [/docker/www/Laravel/bin/laravels]
Linked file [/docker/www/Laravel/vendor/hhxsv5/laravel-s/bin/fswatch] To [/docker/www/Laravel/bin/fswatch]
Linked file [/docker/www/Laravel/vendor/hhxsv5/laravel-s/bin/inotify] To [/docker/www/Laravel/bin/inotify]

配置.env

LARAVELS_LISTEN_IP=0.0.0.0 LARAVELS_LISTEN_PORT=5200 LARAVELS_WORKER_NUM=4

 

上一篇:看云学习文档列表


下一篇:laravel 框架 ajax无页面刷新删除