![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/orchestra/canvas/src/Console/ |
<?php namespace Orchestra\Canvas\Console; use Illuminate\Database\Migrations\MigrationCreator; use Illuminate\Support\Composer; use Orchestra\Canvas\Core\Commands\Command; use Orchestra\Canvas\Core\Concerns\CreatesUsingGeneratorPreset; use Symfony\Component\Console\Attribute\AsCommand; /** * @see https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php */ #[AsCommand(name: 'make:migration', description: 'Create a new migration file')] class MigrateMakeCommand extends \Illuminate\Database\Console\Migrations\MigrateMakeCommand { use CreatesUsingGeneratorPreset; /** * The type of class being generated. * * @var string */ protected $type = 'Migration'; /** * Create a new migration install command instance. * * @param \Illuminate\Database\Migrations\MigrationCreator $creator * @param \Illuminate\Support\Composer $composer * @return void */ public function __construct(MigrationCreator $creator, Composer $composer) { parent::__construct($creator, $composer); $this->addGeneratorPresetOptions(); } /** * Execute the console command. * * @return void */ public function handle() { $preset = $this->generatorPreset(); if (! $preset->is('laravel')) { $this->input->setOption('path', $preset->migrationPath()); $this->input->setOption('realpath', true); } parent::handle(); } }