Bhoj Bhatta

  • Repository design pattern in Laravel

    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.