diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 70f3f94..32239d9 100644 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -168,5 +168,17 @@ public function edit($id) { $user = User::findOrFail($id); return view('users.edit', compact('user')); } + + /* + * + */ + public function reset_password($id) { + + $user = User::findOrFail($id); + //dd($user); + return view('users.reset_password', compact('user')); + + } + } diff --git a/resources/views/users/create.blade.php b/resources/views/users/create.blade.php index e1cdd0d..56fca06 100644 --- a/resources/views/users/create.blade.php +++ b/resources/views/users/create.blade.php @@ -5,7 +5,7 @@
Username : {{ $user->username }}
diff --git a/routes/web.php b/routes/web.php index a347f46..304ae16 100644 --- a/routes/web.php +++ b/routes/web.php @@ -61,4 +61,6 @@ Route::post('users', 'UsersController@store'); Route::get('users/{id}/edit', 'UsersController@edit'); Route::patch('users/{id}', 'UsersController@update'); -Route::delete('users/{id}', 'UsersController@destroy'); \ No newline at end of file +Route::delete('users/{id}', 'UsersController@destroy'); + +Route::get('users/{id}/reset_password', 'UsersController@reset_password'); \ No newline at end of file