Laravel 8 无法使用laravel中的修补程序路径更新我的配置文件
我的路线 路由::补丁('/profile/{user}',[App\Http\Controllers\profilescocontroller::class'update'])->name('profile.update') 我的看法Laravel 8 无法使用laravel中的修补程序路径更新我的配置文件,laravel-8,Laravel 8,我的路线 路由::补丁('/profile/{user}',[App\Http\Controllers\profilescocontroller::class'update'])->name('profile.update') 我的看法 <form action="/profile/{{ $user->id }}" method="post" encty
<form action="/profile/{{ $user->id }}" method="post" enctype="multipart/form-data">
@csrf
@method('PATCH') //here im declaring patch method ...
$data = request()->validate([
'title'=> 'required',
'description' =>'required',
'url' => 'url',
'image' => ''
]);
$user->profile->update($data);