Support the ongoing development of Laravel.io →
Razvan

Razvan

Joined 2 Oct 2021

Statistics

Threads 54
Replies 35
Solutions 2
Articles 0

How do I filter posts by status with Laravel query builder?

I am working on a Laravel 8 app with users and posts. From all the entries in the posts table, I nee...

0 Likes
3 Replies
Solved

How to overwrite a variable from child controller?

I am working on a Laravel 8 app with users and posts. I have a PostsController and a FeaturedPostsCo...

0 Likes
3 Replies
Solved

Why this "Column 'name' in where clause is ambiguous" error?

I am working on a Laravel 8 app with users and posts. I want to display the full name of the author...

0 Likes
2 Replies
Solved

What causes this 'Unknown format "factory"' error?

I am working on a Laravel 8 app with users and posts. The objective is to create a bunch of posts (I...

0 Likes
4 Replies
Solved

How can I use a middleware method in the routes file?

I am working on a Laravel 8 app with users, roles and permissions. I use Microsoft Azure for user si...

0 Likes
1 Replies
replied 3 months ago

What causes this Unexpected end of JSON error?

@muhalifanhar I agree, but unfortuuinsnatelly, changing the contoller ruins aother theme (called Cal...

0 Likes
replied 4 months ago

How can I use a dynamic custom 404 template?

@muhalifanhar Thanks for the answer, I will test it. But please notice that there is some code displ...

0 Likes
replied 9 months ago

How can I check for a temporary image in Laravel?

Here are the change apparently required. In the Blade file: @if($article->image !== 'default.jpg'...

0 Likes
replied 2 years ago

How do I delete comment replies along with a comment?

Please consider posting an answer to this question too. Thanks! (mention and link removed)

0 Likes
replied 2 years ago

How can I filter comments by status?

@alanrodgers I did this: $comments = Comment::orderBy('id', 'desc') ->when($filter !== 'all',...

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.