From b536aeb0a2e88b05ec7b9ccd535e1e313af2c17f Mon Sep 17 00:00:00 2001 From: rats4final <80012704+rats4final@users.noreply.github.com> Date: Thu, 1 Dec 2022 12:54:39 -0400 Subject: [PATCH] cosas fortify --- app/Actions/Fortify/CreateNewUser.php | 5 ++-- resources/views/admin/Persona/index.blade.php | 25 +++++++++++++++++-- resources/views/auth/register.blade.php | 5 ---- 3 files changed, 26 insertions(+), 9 deletions(-) diff --git a/app/Actions/Fortify/CreateNewUser.php b/app/Actions/Fortify/CreateNewUser.php index 103dd15..638131a 100644 --- a/app/Actions/Fortify/CreateNewUser.php +++ b/app/Actions/Fortify/CreateNewUser.php @@ -21,7 +21,7 @@ class CreateNewUser implements CreatesNewUsers public function create(array $input) { Validator::make($input, [ - 'name' => ['required', 'string', 'max:255'], + //'name' => ['required', 'string', 'max:255'], 'email' => [ 'required', 'string', @@ -34,10 +34,11 @@ public function create(array $input) ])->validate(); return User::create([ - 'name' => $input['name'], + //'name' => $input['name'], 'email' => $input['email'], 'username' => $input['username'], 'password' => Hash::make($input['password']), + 'rol' => 1, ]); } } diff --git a/resources/views/admin/Persona/index.blade.php b/resources/views/admin/Persona/index.blade.php index cd1930c..8844c6d 100644 --- a/resources/views/admin/Persona/index.blade.php +++ b/resources/views/admin/Persona/index.blade.php @@ -7,7 +7,8 @@