Support the ongoing development of Laravel.io →
pmall

pmall

Joined 27 Jun 2014

Statistics

Threads 2
Replies 91
Solutions 17
Articles 0
posted 11 years ago

Testing filters assignment

As mentioned here filters are disabled while testing controllers. So as taylor said, I've made class...

0 Likes
1 Replies

How to sync pivot data via morphedByMany ?

Hello ! i'm trying to sync a polymorphic pivot table from the morphedByMany side of a relationship....

0 Likes
0 Replies
replied 11 years ago

Seperate rights management from views and controllers

For the views maybe you can use nested views. For the controller i don't see any other solution than...

0 Likes
replied 11 years ago

Validation: unique ignoring a given id

You can ignore an id : 'username' => 'required|unique:staff_user,username' . $this->id

0 Likes
replied 11 years ago

Converting a DB-object into an array (for form use)

$cities_for_select = City::lists('city', 'id');

0 Likes
replied 11 years ago

Select Box Fields with "auto-associative" values (not numbered)

Option values are keys and option names are values, you just have to construct an array like $dates...

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.