This commit is contained in:
Ferks-FK 2022-11-02 16:53:52 +00:00
parent e37eb6c157
commit 9390f6f4d6
6 changed files with 131 additions and 100 deletions

1
.gitignore vendored
View file

@ -15,6 +15,7 @@ Homestead.json
Homestead.yaml Homestead.yaml
npm-debug.log npm-debug.log
yarn-error.log yarn-error.log
yarn.lock
.gitignore .gitignore
.env.dev .env.dev
.env.testing .env.testing

View file

@ -131,8 +131,9 @@ class ProfileController extends Controller
'name' => $request->input('name'), 'name' => $request->input('name'),
'email' => $request->input('email'), 'email' => $request->input('email'),
]); ]);
$user->reVerifyEmail();
$user->sendEmailVerificationNotification(); $user->sendEmailVerificationNotification();
return redirect()->route('profile.index')->with('success', __('Profile updated')); return redirect()->route('profile.index')->with('success', __('Profile updated'));
} }
} }

View file

@ -266,4 +266,11 @@ class User extends Authenticatable implements MustVerifyEmail
'email_verified_at' => now(), 'email_verified_at' => now(),
])->save(); ])->save();
} }
public function reVerifyEmail()
{
$this->forceFill([
'email_verified_at' => null,
])->save();
}
} }

4
public/css/app.css vendored

File diff suppressed because one or more lines are too long

214
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -6,7 +6,7 @@
<div class="container-fluid"> <div class="container-fluid">
<div class="row mb-2"> <div class="row mb-2">
<div class="col-sm-6"> <div class="col-sm-6">
<h1{{__('Users')}}</h1> <h1>{{__('Users')}}</h1>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<ol class="breadcrumb float-sm-right"> <ol class="breadcrumb float-sm-right">