Support the ongoing development of Laravel.io →
Eloquent Blade
Last updated 2 years ago.
0

Because you've namedspaced the model as App\Models\Hotel your class is App\Models\Hotel\Hotel.

I think your namespace should be App\Models then your class is App\Models\Hotel

0
Solution

Thanks,

I moved my models to a model folder in L5 and forgot to namespace my Hotel.php model file to use App\Models

I dropped eloquent from the extends.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 Nov 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.