When I try to get route list in command line with php artisan route:list i get this error: [Symfony\Component\HttpKernel\Exception\HttpException]
Seems like my AjaxController's constructor is throwing an exception for every ajax route. Like it enters this condition !$request->ajax() and breaks this CLI worker.
AjaxController's constructor
public function __construct(Request $request)
{
if (!$request->ajax())
{
abort(403);
}
}
Route
Route::controller('ajax', 'AjaxController');
Any thoughts how could I get route list without removing this condition?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1STWKiI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire