Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent

I was tinkering around with larval, getting ready to build an API for Ember Js. In my models I extend Model but in Laravel 4.2 I was extending Eloquent. Now I can't extend Eloquent unless I put it in the global namespace (\Eloquent). I fI don't do that then I get errors of not being able to find Eloquent. I have moved all my models to a new directory (everything is namespace correctly). Would this have anything to do with the errors?

What is the difference between Model and Eloquent in terms of extending them?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

teejten9 teejten9 Joined 3 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.

© 2025 Laravel.io - All rights reserved.