Answer the question
In order to leave comments, you need to log in
How to properly validate the parameters passed in the URL?
Good afternoon. Please tell me what I'm doing wrong.
There is a route:
Route::get('/user/{name}', 'Page\[email protected]');
public function userName(Request $request, $name)
{
$request->validate([
'name' => 'required|alpha_num|max:50',
]);
}
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