I have this function: public function show($id) { if (count($post = Post::find($id)))...
Hi there, I finally managed to crop resize and compress an image file the user is submitting through...
I am looking at a way to strip those things from user input comments or posts in my project. I am us...
...how do we get all user's associated likeables? So I used the polymorphic relation method to set u...
I am trying to move the controls I make in the Controller for a User to be able to leave a Comment o...
LaurentMeganck said: I believe your relations are wrong for what you are trying to achieve. It shou...
even adding 'id' as 5th argument doesn't change anything. Same error.
Actually hasManythrough only accepts 4 arguments: "The first argument passed to the hasManyThro...
Well it doesn't. If I do $models_with_posts = Item_model::where('model_name', 'LIKE', $q . '%')->...
It works, but this is done without using the hasManyThrough method defined in Item_model, as per lar...
The Laravel portal for problem solving, knowledge sharing and community building.