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 @@

Personas

- + Nueva Persona
@@ -39,7 +40,27 @@ {{ $persona->cel_per }} {{ $persona->fecha_nac }} {{ $persona->num_seguro }} - {{ $persona->donante }} + + @if ($persona->donante == 1) + + + + @else + + + + + + @endif + {{ $persona->tipo_sangre->nombre_tipo_sangre }} {{ $persona->pariente->nombre_per }} diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 371cd5e..9523651 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -21,11 +21,6 @@ class="peer placeholder-transparent h-10 w-full border-b-2 border-gray-300 text- class="absolute left-0 -top-3.5 text-gray-600 text-sm peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-440 peer-placeholder-shown:top-2 transition-all peer-focus:-top-3.5 peer-focus:text-gray-600 peer-focus:text-sm">Nombre
- @error('name') -
- {{ $message }} -
- @enderror