src/Factories/ResourceMigrationFileFactory.php
/**
     * Create a migration for the resource.
     *
     * @param Resource $resource
     */
Create a migration for the resource.
@param Resource $resource
Create a migration for the resource . @param Resource $resource
public static function handle(Resource $resource): void
    {
        Artisan::call('make:migration', [
            'name' => "create_{$resource->pluralSnake()}_table",
            '--create' => $resource->pluralSnake(),
        ]);
    }
public static function handle ( Resource $ resource ) : void { Artisan :: call ( 'make:migration' , [ 'name' => " create_ { $ resource -> pluralSnake ( ) } _table " , '--create' => $ resource -> pluralSnake ( ) , ] ) ; }
Create a migration for the resource.
Create a migration for the resource .