nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 327 forks source link

Got error when run php artisan route:list command #26

Closed fahribaharudin closed 7 years ago

fahribaharudin commented 7 years ago

I got this error message when running php artisan route:list command:

PHP Fatal error: Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found in /home/fahri/Projects/thdc/project/vendor/nahid/talk/src/Example/TalkController.php on line 16

nahid commented 7 years ago

which version of Laravel you using?

fahribaharudin commented 7 years ago

Im using 5.3

ptondereau commented 7 years ago

@fahribaharudin for project >= 5.3.*, upgrade guides says:

The AuthorizesResources trait has been merged with the AuthorizesRequests trait. You should remove the AuthorizesResources trait from your app/Http/Controllers/Controller.php file.

Remove it and it should work ;)

fahribaharudin commented 7 years ago

I already remove that trait from my base controller sir, It seems the error is on nahid/talk/src/Example/TalkController.php i noticed there is AuthorizesResources trait too on that controller

ptondereau commented 7 years ago

@fahribaharudin this is because Example shouldn't be include when we get this package (same namespace). I've made a PR to fix this.