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

Hello, Could you write a detailed question?

Laravel doesn't have a "normal" model. In fact they have a model with NOS in it. Every model in Laravel is a direct relationship with database table (unless you don't use eloquent - then it's just a model).

Mostly the logic in model won't be needed but there is some cases.

Please feel free to go thru http://laravel.com/docs/5.1/eloquent . It should answer most of your future questions.

Have fun in the laravel world!

0

Hello. If you are using a database, the best way to use the tables and access data is through models extending for the base model from laravel (Eloquent). If you don't use a database the models could seems a little inncessary but if you really want to keep a MVC architecture, you can still using models, with your own methods/functions and is not mandatory to use the base model (Eloquent).

If you are starting with Laravel I recommend you this course, could be helpful during the learning process: https://www.udemy.com/laravel-5-course-learn-php-laravel/?couponCode=inbound9

Or if you want something more deeper or specific, here you have a good course about RESTful APIs with Laravel: https://www.udemy.com/laravel-5-php-framework-agile-and-practical-php-restful-api/?couponCode=inbound9

Hope it helps :)

Best wishes.

0

Thanks for the info!!! Much appreciated

0

Sign in to participate in this thread!

Eventy

Your banner here too?

troiano86 troiano86 Joined 2 Jul 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.