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

Same as in L4. Just add the 'use' statement at the top of your class with the correct namespace to your model.

0

RemiCollin said:

Same as in L4. Just add the 'use' statement at the top of your class with the correct namespace to your model.

Well, I don't know the 'use' statement in PHP. Can you tell me what is the right code if my model is located in 'App/User.php'?

0
use App\User;
0

Sign in to participate in this thread!

Eventy

Your banner here too?

lovePizza lovepizza Joined 13 Mar 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.