1.

What is fillable in laravel model?

Answer»

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

Example

class User EXTENDS MODEL {
        PROTECTED $fillable = ['username', 'password', 'phone'];
}



Discussion

No Comment Found