jeudi 4 juillet 2019

Can I add 'id' column as fillable?

I want ad 'id' in user table. The user table is pure from laravel it self. In User.php model there is these syntax

protected $fillable = ['name','email',password']

Can I add 'id' column at $fillable syntax?.

And can I fill 'id' column without add the column name to $fillable array?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire