Support the ongoing development of Laravel.io →

pmall

Joined 27 Jun 2014

Statistics

Threads 2
Replies 92
Solutions 18
Articles 0
posted 10 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 10 years ago

Take all user post comments

Maybe has many through relationships (users comment through posts) can help.

0 Likes
replied 10 years ago

How can i do this???? $this->hasMany( ) ->select()->where()

As I mentioned earlier you should add all keys used in your select. But your relationships methods a...

0 Likes
replied 10 years ago

How can i do this???? $this->hasMany( ) ->select()->where()

Of course because you have to include the needed primary/foreign keys used by the relationship

0 Likes
replied 10 years ago

Can't show image!

Always be careful about routes.php ... haha :)

0 Likes
replied 10 years ago

wanna change ->withErrors

So as you mentioned with named errors return Redirect::to('whatever')->withErrors($validator, 'lo...

0 Likes
Solved

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.

© 2024 Laravel.io - All rights reserved.