diff --git a/app/Actions/Fortify/UpdateUserProfileInformation.php b/app/Actions/Fortify/UpdateUserProfileInformation.php index 9738772d..7bd2ea36 100644 --- a/app/Actions/Fortify/UpdateUserProfileInformation.php +++ b/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -19,6 +19,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation { Validator::make($input, [ 'name' => ['required', 'string', 'max:255'], + 'apellidoPaterno' => ['nullable', 'string', 'max:255'], + 'apellidoMaterno' => ['nullable', 'string', 'max:255'], 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)], 'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'], ])->validateWithBag('updateProfileInformation'); @@ -33,6 +35,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation } else { $user->forceFill([ 'name' => $input['name'], + 'apellidoPaterno' => $input['apellidoPaterno'], + 'apellidoMaterno' => $input['apellidoMaterno'], 'email' => $input['email'], ])->save(); } diff --git a/app/Models/User.php b/app/Models/User.php index 6ff10307..364f86e6 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -24,6 +24,7 @@ class User extends Authenticatable use Notifiable; use TwoFactorAuthenticatable; use HasRoles; + use HasProfilePhoto; protected $fillable = [ 'name', diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 4f2a1b73..4fb68fec 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -386,3 +386,4 @@ transform:translateY(0); } /* carrusel */ + diff --git a/resources/views/layouts/_partials/header.blade.php b/resources/views/layouts/_partials/header.blade.php index cfd9836d..78476a8c 100644 --- a/resources/views/layouts/_partials/header.blade.php +++ b/resources/views/layouts/_partials/header.blade.php @@ -146,7 +146,13 @@