Support the ongoing development of Laravel.io →
Razvan

Razvan

Joined 2 Oct 2021

Statistics

Threads 53
Replies 35
Solutions 2
Articles 0

How can I avoid repeating this line in all my methods?

I am working on a blogging application in Laravel 8. I have a settings table from which I pull the _...

1 Likes
5 Replies

How do I make a factory that creates proper random titles?

I am working on a Laravel 8 blogging application. I need a large numer of articles in order to test...

0 Likes
3 Replies
Solved

How do I keep the value of a checkbox in an invalid form?

I am working on a Laravel 8 blogging application. The "Add article" form has a "swit...

1 Likes
12 Replies

How can I make Blade variables "global"?

I am working on a Laravel 8 blogging application with articles, categories and comments. The goal I...

1 Likes
8 Replies
Solved

What makes the image type validation fail?

What makes the image type validation in this Laravel application fail? I am making a blogging applic...

0 Likes
3 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.