When a new Migration is created in Laravel, with the command php artisan make:migration
, it has some default fields: The primary key, called id()
and the campos created_at
and updated_at
by timestamps()
.
What I would like would be that, when creating a migration, other fields would appear by default, such as created_by
and last_updated_by
.
I suppose that some template will have to be modified somewhere, but I have no idea where.
You must run this command
This will create the stubs folder at the root of the project. It will allow you to modify the migration templates in