php - Laravel 5 Cached Routes not updating -
i've cached laravel 5 routes doing php artisan route:cache
. went succesfull quite while , when changed route cache them again , work should.
the problem i've moved routes route group , seems won't cached reason.
i've tried cache them again didn't work. i've tried php artisan cache:clear
still not working.
routes.php changes:
route::group(['prefix' => 'api', 'middleware' => 'auth'], function () { route::get('invites', 'invitationcontroller@get'); route::get('invites/check', 'invitationcontroller@check'); });
changed to:
route::group(['prefix' => 'api'], function () { route::post('auth', 'auth\authcontroller@authenticate'); route::get('invites', 'invitationcontroller@get'); route::get('invites/check', 'invitationcontroller@check'); });
as can see i've moved invitation
routes route group without authenticate
middleware. when cached routes again, still execute auth
middleware when moved out of group..
the right syntaxe remove cached route in laravel 5.* is
php artisan route:clear
regards
Comments
Post a Comment