Support the ongoing development of Laravel.io →
Juliáns Iturra

Juliáns Iturra

Joined 3 Jul 2017

Statistics

Threads 0
Replies 5
Solutions 0
Articles 0

juiturra has not posted any threads yet

replied 7 years ago

Return only if relationship where query is true

try with "whereHas()" Example: $users = User::role('DJ')->with('events')->whereHas('...

0 Likes
replied 7 years ago

Model save, sql cant be null while default value is set

nullable() allows the attribute to be null, with default() the attribute will take the default value...

0 Likes
replied 7 years ago

Model save, sql cant be null while default value is set

try this in migration file $table->string('comment',512)->default('No Tag')->nullable();

0 Likes
replied 7 years ago

Utilizar carbon en la vista

Verifica en el modelo que el atributo esté como protected $dates = ['fechacrea'] de esa forma lo pue...

0 Likes
replied 7 years ago

Get value in Blade

What is the value of $vestiging->rekenplichtige? the sintax is fine (IMO), just for test $vestigi...

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.