In Laravel, what is fillable attribute in a Model ?

It is an array which contains all those fields of table which can be create directly new record in your Database table.



class User extends Model {
        protected $fillable = ['username', 'password', 'phone'];

Suggest An Answer

No suggestions avaliable!

Latest post from Laravel Interview Questions

Ask Question