Support the ongoing development of Laravel.io →

pdcmoreira

Joined 11 Mar 2014

Statistics

Threads 2
Replies 5
Solutions 1
Articles 0

attach() throws error when given array of ids with additional pivot data

Example in the docs: $user->roles()->attach([1 => ['attribute1' => 'value1'], 2, 3]); So...

0 Likes
0 Replies

Method that can be called both statically and non-statically

Hi, I wanted to create a method in the User model that behaves differently when called statically or...

0 Likes
0 Replies
replied 9 years ago

PostgreSQL and enum fields

For anyone that comes across this, like I did myself, it creates a varchar(255) column and adds a co...

0 Likes
replied 9 years ago

foreach in view on laravel forge

Check this: http://php.net/manual/en/language.basic-syntax.phptags.php Check if you have the short o...

0 Likes
Solved
replied 9 years ago

foreach in view on laravel forge

And what is the definition of that $view?

0 Likes
replied 9 years ago

foreach in view on laravel forge

Give us a var_dump of that $variable.

0 Likes
replied 10 years ago

Sort by distant relationship

I wish I had found this earlier...

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.

© 2024 Laravel.io - All rights reserved.