Support the ongoing development of Laravel.io →
mehmet

mehmet

Joined 18 May 2014

Statistics

Threads 31
Replies 17
Solutions 0
Articles 0

Is it possible one query for 3 models?

I have 3 tables: posts, comments, and users. One post has many comments (one to many relation.) Ever...

0 Likes
4 Replies
Solved
posted 11 years ago

a strange situation about @foreach

The blade code below doesn't render posts' id. However the count of posts is 3. Where is the problem...

0 Likes
5 Replies
Solved

route validation

Hi all, I have a route pattern like 'category/{id}/{year}-{month}-{day}'. How can I render a 404 res...

0 Likes
1 Replies
Solved
posted 11 years ago

how to populate a select field in a form

Hi all, I get x form, I fill it with some value, I submit it to postController of x form, I evaluate...

0 Likes
2 Replies

how to nested paginate

Hi all, My question is about pagination. I have some posts and some comments for each post. I unders...

0 Likes
0 Replies
replied 11 years ago

how to prevent user from inputting html tags

I would reject it, becuase I expect user to input comment.

0 Likes
replied 11 years ago

comment ordering problem

In fact, I am aware of the eager loading solution. But I want to evaluate posts and comments separat...

0 Likes
replied 11 years ago

How to evaluate pagination links

I tried all above, but I couldn't..

0 Likes
replied 11 years ago

How to evaluate pagination links

$comment->links() gives this error: ErrorException Call to undefined method Illuminate\Database\Q...

0 Likes
replied 11 years ago

How to evaluate pagination links

$posts->comments()->links(); gives following error: ErrorException call_user_func_array() expe...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.