Add install command
This commit is contained in:
20
app/Console/Commands/HRCInstall.php
Normal file
20
app/Console/Commands/HRCInstall.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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');
|
||||
Artisan::call('db:seed');
|
||||
|
||||
return [
|
||||
'status' => 'success'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user