<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class AdminInstall extends Command
{
protected $signature = 'laradmin:install';
protected $description = 'Install the laradmin';
public function __construct()
{
parent::__construct();
}
public function handle()
{
$this->execShellWithPrettyPrint('php artisan key:generate');
$this->execShellWithPrettyPrint('php artisan migrate --seed');
}
public function execShellWithPrettyPrint($command)
{
$this->info('---');
$this->info($command);
$output = shell_exec($command);
$this->info($output);
$this->info('---');
}
}