lundi 15 avril 2019

Add default columns in model migration

I'm new to Laravel and I just want to ask if it is possible to add my default columns when I run the command: "php artisan make: model -m" just like created_at and updated_at are automatically added in the table.

I expect the following columns will be automatically added when I migrate it: created_by updated_by posted_by posted_at approved_by approved_at etc...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire