mirror of
https://github.com/10h30/Test-Laravel-Auth-Basics.git
synced 2026-06-05 15:07:43 +09:00
22 lines
466 B
PHP
22 lines
466 B
PHP
<?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.');
|
|
}
|
|
}
|