管理者昇格/降格 CLIコマンド

This commit is contained in:
shibafu
2019-02-11 14:46:43 +09:00
parent e98ed0c3ca
commit 82ccd623a6
3 changed files with 122 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Console;
use App\Console\Commands\DemoteUser;
use App\Console\Commands\PromoteUser;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@@ -35,6 +37,8 @@ class Kernel extends ConsoleKernel
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}