hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
MIT License
3.83k stars 472 forks source link

Class 'Hhxsv5\LaravelS\Console\Portal' not found #340

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi there, Every time I run this command: php vendor/hhxsv5/laravel-s/bin/laravels start It return this error

PHP Fatal error:  Uncaught Error: Class 'Hhxsv5\LaravelS\Console\Portal' not found in /var/www/html/vendor/hhxsv5/laravel-s/bin/laravels:161
Stack trace:
#0 {main}
  thrown in /var/www/html/vendor/hhxsv5/laravel-s/bin/laravels on line 161

I use:

Thank you

hhxsv5 commented 3 years ago

1.Publish laravel-s files: php artisan laravels publish 2.Start laravel-s in the project root directory instead of vendor: php bin/laravels start

ghost commented 3 years ago

It's work! Thank you so much.

hhxsv5 commented 3 years ago

My pleasure.

ghost commented 3 years ago

I'm sorry, But I have an other issue. I have an API built with Lumen, implement a basic authentication, It's work. But, when authenticate with correct api key, then edit it to wrong keys, it still authenticated!

hhxsv5 commented 3 years ago

Set the cleaners.