mirror of
https://github.com/10h30/Test-Laravel-Validation.git
synced 2026-07-11 19:05:53 +09:00
Complete all tasks
This commit is contained in:
@@ -9,6 +9,8 @@ class ProfileController extends Controller
|
||||
public function update(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'profile.name' => 'required',
|
||||
'profile.email' => 'required'
|
||||
// TASK: imagine that in the Blade the fields are
|
||||
// <input name="profile[name]" ... />
|
||||
// <input name="profile[email]" ... />
|
||||
|
||||
Reference in New Issue
Block a user