Hi I want to search for like which is made by a given user on a given post. I have one Post model as...
Just to add to the solution provided by @jarektkaczyk in case you have morphMany relationship to mod...
The code which you are using public function index() { return Model::find(1); } it is suitable...
The Laravel portal for problem solving, knowledge sharing and community building.
The community