Example in the docs: $user->roles()->attach([1 => ['attribute1' => 'value1'], 2, 3]); So...
Hi, I wanted to create a method in the User model that behaves differently when called statically or...
For anyone that comes across this, like I did myself, it creates a varchar(255) column and adds a co...
Check this: http://php.net/manual/en/language.basic-syntax.phptags.php Check if you have the short o...
The Laravel portal for problem solving, knowledge sharing and community building.
The community