PHP  —  Criando um CRUD básico com Laravel 5.4
Victor Hugo Rocha
33310

Show de bola o artigo, mas lembre que você não deve usar o $guarded e $fillable, você deve escolher 1 e usar…

Guarding Attributes

While $fillable serves as a "white list" of attributes that should be mass assignable, you may also choose to use $guarded. The $guarded property should contain an array of attributes that you do not want to be mass assignable. All other attributes not in the array will be mass assignable. So, $guarded functions like a "black list". Of course, you should use either $fillable or $guarded - not both.

Like what you read? Give Felipe Fontana a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.