Laravel 3 : Looking for explanation how to use the model

前端 未结 2 445
再見小時候
再見小時候 2020-11-30 14:44

I\'m new at MVC and my first framework is Laravel (3 for now). I\'ve started coding exclusively in the routes, and I moved to the controller. I\'m however doing all of my da

相关标签:
2条回答
  • 2020-11-30 15:06

    The best statement on the subject of Frameworks I've heard is due to Uncle Bob:

    A good Architecture allows major decisions to be deferred!

    Specifically:

    • A good Architecture delays choosing a Framework!

    Another great piece to think about:

    MVC is not an Architecture! It is a Delivery Design Pattern.

    Watch his video - it is one of the sadly few ones out there that don't spend 1000 words on what can be said in 10 and I can't highly enough recommend it - and it will help you to understand many points raised in your question:

    Robert C Martin(Uncle Bob) -Clean Architecture and Design - Video

    Of course, his book on Clean Code is also highly recommended!

    0 讨论(0)
  • 2020-11-30 15:26

    Although this link is for Laravel 4 docs, it may help you understand how the models work - (Laravel 3 also uses Eloquent):

    http://laravel.com/docs/eloquent

    Also, specific to laravel 3:

    http://codehappy.daylerees.com/eloquent-orm

    0 讨论(0)
提交回复
热议问题