I am working in Laravel.
I have a URL like as below:
http://localhost/udonls/public/mastercandidate/candidate/reset-password/11/[email protected]
Now has a function which is like
public function sendCanResLink(Request $request, $id, $email)
{
// So in this function how should i validate "$email" using laravel validation ?
}
Here is the route:
Route::get('/candidate/reset-password/{id}/{email}', [
'as' => 'candidate.reset.password',
'uses' => 'CandidateSmdnContoller@sendCanResLink'
]);
Overall !! I want to validate my email address which I get in the GET request in larvae with Laravel validation.
I know regex technique but I want to use the Laravel validation technique.