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

Are you importing that class correctly? Categories is probably in some namespace, if it was a model it would be something like App\Categories (please don't use plural form for models, it's a model, not a collection).

You have to include the namespace too when you store the class name in a variable.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BlitZz blitzz Joined 20 Dec 2015

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.