Support the ongoing development of Laravel.io →
Requests Cache
Last updated 2 years ago.
0
Solution

So I can't find the answer to this. I had my class Permission, the name of the file was Permission.php but the class was Permission2

try composer dumpautoload or...

try having the file name match the class name. so if you're gonna use Permission2 as a class name. rename the file as Permission2.php. then run composer dumpautoload

Last updated 7 years ago.
0

Thx that did it, i was sure i was missing something with composer but couldn't find the command.

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

cemeai cemeai Joined 4 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.