From b15c2dc6580bedbcfdc88b4b487ca1c759a37bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Cort=C3=A9s?= Date: Sun, 30 Jun 2019 01:05:41 -0400 Subject: [PATCH] Agrege comando para crear el admin en el server --- app/Console/Commands/CreateAdmin.php | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app/Console/Commands/CreateAdmin.php diff --git a/app/Console/Commands/CreateAdmin.php b/app/Console/Commands/CreateAdmin.php new file mode 100644 index 0000000..52a9076 --- /dev/null +++ b/app/Console/Commands/CreateAdmin.php @@ -0,0 +1,48 @@ +name = $this->argument('username'); + $user->email= $this->argument('email'); + $user->password= Hash::make($this->argument('password')); + $user->save(); + } +}