mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
27 lines
577 B
PHP
27 lines
577 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Overrides;
|
|
|
|
use App\Console\RequiresDatabaseMigrations;
|
|
use Illuminate\Database\Console\Seeds\SeedCommand as BaseSeedCommand;
|
|
|
|
class SeedCommand extends BaseSeedCommand
|
|
{
|
|
use RequiresDatabaseMigrations;
|
|
|
|
/**
|
|
* Block someone from running this seed command if they have not completed
|
|
* the migration process.
|
|
*/
|
|
public function handle(): int
|
|
{
|
|
if (!$this->hasCompletedMigrations()) {
|
|
$this->showMigrationWarning();
|
|
|
|
return 1;
|
|
}
|
|
|
|
return parent::handle();
|
|
}
|
|
}
|