Hi all, I have 2 tables: posts and comments. Each post has many comments (one-to-many relationship)....
Hi, I have posts and comments tables. Post and Comment have one-to-many relationship. I have written...
Hi all, I have a line in my blade file like that: <img src="{{ asset('img/users/Auth::user()...
I have managed to evaluate the occurances of distinct values of a column via a raw query. The result...
Hi all, Suppose I have an orders table and it has a price field. The price values are between 1 and...
I would reject it, becuase I expect user to input comment.
In fact, I am aware of the eager loading solution. But I want to evaluate posts and comments separat...
$comment->links() gives this error: ErrorException Call to undefined method Illuminate\Database\Q...
$posts->comments()->links(); gives following error: ErrorException call_user_func_array() expe...
The Laravel portal for problem solving, knowledge sharing and community building.