Nope as per my knowledge repositories may be used like service layer where you can write your business logic and give a call to your model for database operation or simply return response. If you are giving call to your repository from your controller then you have to write this code in your repository, Hope this will help you.
yes all business logic into repositories, not the controller.
how about this also:
if( $group->contains($user) )
{
// ...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community