Support the ongoing development of Laravel.io →
Razvan

Razvan

Joined 2 Oct 2021

Statistics

Threads 53
Replies 35
Solutions 2
Articles 0

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

How can I make a Blade directive that takes a parameter?

I am working on a Laravel 8 application. I need to make a custom directive for checking user's permi...

0 Likes
2 Replies
Solved
replied 1 month 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 2 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 7 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 1 year 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 1 year 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.