Artisan Command in routes not working
-
Hi,
In this sub domain(shop.raihantechbd.com) install Bagisto.
/home/eshawghe/shop.raihantechbd.com/routes/web.php i use this code
Route::get('/config-clear', function() {
Artisan::call('config:clear');
return 'Configuration cache cleared!';
});
Route::get('/config-cache', function() {
Artisan::call('config:cache');
return 'Configuration cache cleared!';
});
But when i visit www.shop.raihantechbd.com/public/config-clear then
this error message show"Page lost content
The page you're looking for isn't available."
Please help me.
Bagisto version: 1.3.2 -
Have you run
php artisan optimize
after registering any route.