$validatedData = $request->validate([ 'name' => 'required', 'gender' => 'required', 'country' => 'required', 'bod'=>'required', 'description'=>'required', ]); Profile::where('user_id',$user_id)->fill([ 'name'=>'name', 'gender'=>'gender', 'country'=>'country', 'bod'=>'bod', 'description'=>'description', ])->save();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter