| 1 | <?php namespace Serverfireteam\Panel\Commands; |
||
| 7 | class PanelCommand extends Command { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * The console command name. |
||
| 11 | * |
||
| 12 | * @var string holds the name of the command |
||
| 13 | */ |
||
| 14 | protected $name = 'panel:install'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The console command description. |
||
| 18 | * |
||
| 19 | * @var string holds the description of the command |
||
| 20 | */ |
||
| 21 | protected $description = 'Installs Panel migrations, configs, views and assets.'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new command instance. |
||
| 25 | * |
||
| 26 | */ |
||
| 27 | public function __construct() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Execute the console command. |
||
| 34 | * |
||
| 35 | */ |
||
| 36 | public function handle() |
||
| 37 | { |
||
| 38 | $this->info(' [ Welcome to ServerFireTeam Panel Installation ] '); |
||
| 39 | |||
| 40 | $this->call('elfinder:publish'); |
||
| 41 | |||
| 42 | $this->call('vendor:publish'); |
||
| 43 | |||
| 44 | $this->call('migrate', array('--path' => 'vendor/serverfireteam/panel/src/database/migrations')); |
||
| 45 | |||
| 46 | $this->call('db:seed', array('--class' => '\Serverfireteam\Panel\LinkSeeder')); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the console command arguments. |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | protected function getArguments() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Get the console command options. |
||
| 61 | * |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | protected function getOptions() |
||
| 68 | |||
| 69 | } |
||
| 70 |