Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on TumblrEmail this to someone

Repository pattern is something that is really taken serious in Laravel. One of the most popular ways for building an application using Laravel is the Repository Pattern. The basic idea of the pattern is to create repositories to link/bridge between your controller and model and hence controller uses repository class instead of the model directly and in that repository you may declare your methods using the model.

If you are not familiar with Repository Pattern then read this article first

http://msdn.microsoft.com/en-us/library/ff649690.aspx

 

Tutorial Links:

http://culttt.com/2013/07/08/creating-flexible-controllers-in-laravel-4-using-repositories/

http://heera.it/laravel-repository-pattern#.VJxIul4ADJ

http://slashnode.com/reusable-repository-design-in-laravel/

 

Watch Video: