Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found

Tags:

laravel-5

enter image description here

Anyone familiar with this error i'm getting?

Please help thanks.

like image 679
AceJordan Avatar asked Jun 04 '16 01:06

AceJordan


2 Answers

If you are using Laravel 5.3 do the following:

From the upgrade guides: The AuthorizesResources Trait

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

like image 129
P. Venema Avatar answered Nov 05 '22 05:11

P. Venema


Seems like the problem is with your version of laravel/framework.. Running composer update should pull in the latest version (which is 5.2.39). If that doesn't work for you, then I'm not sure what else you can do. Perhaps try composer self-update before you do it.

If you run composer info laravel/framework the 4th line should show you the latest version from packagist, which is: 5.2.39.

Edit: You could try and clear your package cache: composer clearcache

like image 1
Nitish Kumar Avatar answered Nov 05 '22 04:11

Nitish Kumar