jeudi 18 janvier 2018

Laravel 5.5 - Model fields

In the Laravel 5.5 documentation it is explained that in order to define the database fields it is necessary to write something like this in the model:

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

How can I specify the type of field (boolean, datetime, etc)?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DNzyTW
via IFTTT

Aucun commentaire:

Enregistrer un commentaire