mirror of
https://github.com/10h30/Test-Laravel-Auth-Basics.git
synced 2026-06-05 15:07:43 +09:00
First auth tests around profile
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Requests\ProfileUpdateRequest;
|
||||
|
||||
class ProfileController extends Controller
|
||||
{
|
||||
public function show()
|
||||
{
|
||||
return view('auth.profile');
|
||||
}
|
||||
|
||||
public function update(ProfileUpdateRequest $request)
|
||||
{
|
||||
// Task: fill in the code here to update name and email
|
||||
// Also, update the password if it is set
|
||||
|
||||
return redirect()->back()->with('success', 'Profile updated.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user