File manager - Edit - /var/www/payraty/hris/vendor/nwidart/laravel-modules/src/Commands/Database/MigrateStatusCommand.php
Back
<?php namespace Nwidart\Modules\Commands\Database; use Nwidart\Modules\Commands\BaseCommand; use Nwidart\Modules\Migrations\Migrator; use Symfony\Component\Console\Input\InputOption; class MigrateStatusCommand extends BaseCommand { /** * The console command name. * * @var string */ protected $name = 'module:migrate-status'; /** * The console command description. * * @var string */ protected $description = 'Status for all module migrations'; /** * @var \Nwidart\Modules\Contracts\RepositoryInterface */ protected $module; public function executeAction($name): void { $module = $this->getModuleModel($name); $path = str_replace(base_path(), '', (new Migrator($module, $this->getLaravel()))->getPath()); $this->call('migrate:status', [ '--path' => $path, '--database' => $this->option('database'), ]); } public function getInfo(): ?string { return null; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['direction', 'd', InputOption::VALUE_OPTIONAL, 'The direction of ordering.', 'asc'], ['database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'], ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings