Answer the question
In order to leave comments, you need to log in
How to check where the error is in the validation?
public function store(Request $request)
{
$this->validate($request, [
'age' => 'required|min:18',
'fio' => 'required|max:120|not_in:about',
'about' => 'required|not_in:fio|max:1000',
]);
dd("stop");
$post = User::add($request->all());
$post->$request->post('fio');
$post->$request->post('age');
$post->$request->post('about');
$post->save();
return redirect()->route('sttings');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question