difference between guard and fillable laravel

Solutions on MaxInterview for difference between guard and fillable laravel by the best coders in the world

showing results for - "difference between guard and fillable laravel"
Calvin
13 Jul 2019
1Mass assignment is a process of sending an array of data that will be saved to the specified model at once. In general, you don’t need to save data on your model on one by one basis,
2but rather in a single process.
3  In Laravel, fillable attributes are used to specify those fields which are to be mass assigned. Guarded attributes are used to specify those fields which are not mass assignable.
Emilia
18 Oct 2019
1protected $guarded = ['name', 'email'];
2
María Camila
30 Mar 2019
1protected $fillable = ['name', 'email'];
2