You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hack that is applied to stop route caching is not just hacky, it very hacky and way too inelegant. There is much simpler solution which I believe should have an been obvious choice.
Instead of blocking the caching of routes by doing this:
$router->any('* routes should not be cached',[
'as' => 'routes-should not be cached',
'uses' => function () { return'Api-tester routes-should not be cached';},
]);
Just simply register the route conditionally in RouteServiceProvider according to APP_DEBUG value, like so:
The hack that is applied to stop route caching is not just hacky, it very hacky and way too inelegant. There is much simpler solution which I believe should have an been obvious choice.
Instead of blocking the caching of routes by doing this:
Just simply register the route conditionally in
RouteServiceProvider
according toAPP_DEBUG
value, like so:The text was updated successfully, but these errors were encountered: