I have Enums which I am using it in almost all files for migration. Important them one by one is lots of work every time. Is there a way I can modify the template for laravel migration command and add those imports at the start itself and also if possible, the common fields too.
below is not the answer to what I need. Majority of the part of the question is about Auto import the enums file, below is just the part for fields which I have asked but don't think can be accepted as answer as how to add import is missing in the first place.
Can one modify the templates created by artisan migrate command?
Example below: Default migration file header
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
Code I expect for migration
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use App\Enums\Role; // added by me
use App\Enums\Status; // added by me