25 lines
477 B
PHP
25 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
class HRCInstall extends HRCCommand implements HRCCommandInterface
|
|
{
|
|
protected $signature = 'getinstall';
|
|
|
|
public function command($input, $output = null)
|
|
{
|
|
Artisan::call('migrate', [
|
|
'--force' => true,
|
|
]);
|
|
Artisan::call('db:seed', [
|
|
'--force' => true,
|
|
]);
|
|
|
|
return [
|
|
'status' => 'success'
|
|
];
|
|
}
|
|
}
|