I have following route definition in my web.php:
Route::get('/captcha','Api\MyCaptchaController@captcha'); // this will return a service entry url: /captcha/default
Route::get('/{cslug1}/{cslug2}','Front\FrontController@default_index');
and in the CaptachaServiceProvider boot() method, we defined the /captcha/default route:
$this->app['router']->get('captcha/default', '\Mews\Captcha\CaptchaController@getCaptcha')
and above route the action which will serve /captcha/default url request. The issue is: When above url request is lauched by browser, the default wildcast route entity is hit.(/{cslug1}/{cslug2}) How to make sure the captcha/default is served by CaptchaController instead of FrontController?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire