Support the ongoing development of Laravel.io →
kokokurak

kokokurak

Joined 21 Aug 2014

Statistics

Threads 31
Replies 132
Solutions 19
Articles 0
posted 10 years ago

Do you want Laravel to go strict?

We have PHP 7 on the way. Laravel is quite ambitious when it comes to support for new PHP versions,...

0 Likes
2 Replies

Are views in exception handler broken in Laravel 5.1?

I'm trying to load some view in Laravel 5.1 exception handler (/app/Exceptions/Handler.php). In my r...

0 Likes
0 Replies

Ignore route if controller returns null

I'd like to be able to have multiple dynamic routes that can interrupt each other. For example, I ha...

0 Likes
0 Replies
posted 10 years ago

Pure controller class names?

Guys, do you always use Controller suffix in controller classes names? I do, but I'm now thinking if...

1 Likes
0 Replies

Error on php artisan app:name in Laravel 5.1

I have a problem with php artisan app:name [name] command on fresh instance of Laravel 5.1. When I r...

0 Likes
3 Replies
Solved
replied 10 years ago

Sorting by count of relationships

I would do it this way: Country::leftJoin('users', 'users.country_id', '=', 'countries.id') ->...

0 Likes
replied 10 years ago

How to Make ID use String+Number ?

I would use separate unique column for that and inject this value on creating event: http://laravel....

0 Likes
replied 10 years ago

Update seeding?

It should be NULL. This value is never filled in advance.

0 Likes
replied 10 years ago

[Eloquent] Select all and tell if relation exists

OK, but you can't add a method to the model assuming that somebody will do something before calling...

0 Likes
replied 10 years ago

[Eloquent] Select all and tell if relation exists

Cześć Jarek ;) You are right, my solution produces 2 queries. I counted one more, but it was unrelat...

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.