【发布时间】:2020-05-06 08:41:08
【问题描述】:
我在 Laravel 工作。
我的网址如下:
http://localhost/udonls/public/mastercandidate/candidate/reset-password/11/das@sdadas.com
现在有一个类似的功能
public function sendCanResLink(Request $request, $id, $email)
{
// So in this function how should i validate "$email" using laravel validation ?
}
路线如下:
Route::get('/candidate/reset-password/{id}/{email}', [
'as' => 'candidate.reset.password',
'uses' => 'CandidateSmdnContoller@sendCanResLink'
]);
总体来说!!我想通过 Laravel 验证来验证我在幼虫的 GET 请求中获得的电子邮件地址。
我知道regex 技术,但我想使用 Laravel 验证技术。
【问题讨论】:
-
首先你必须改变路由方法。