Same as in L4. Just add the 'use' statement at the top of your class with the correct namespace to your model.
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'?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community