I am getting this error when i upload my laravel project to shared hosting. I tried different solutions like deleting config.php file located in bootstrap/cache , changing it’s name. when i change name of config.php or run artisan clear command i got HTTP 500
“This page isn’t workingtimewonders.projectbca.in is currently unable to handle this request.
HTTP ERROR 500”
I tried Route clearing command giving permissions etc.
Route::get('/clear', function() {
try {
Artisan::call('cache:clear');
Artisan::call('config:clear');
Artisan::call('view:clear');
Artisan::call('route:clear');
Artisan::call('config:cache');
return "Cleared!";
} catch (Exception $e) {
return "Error: " . $e->getMessage();
}
});
New contributor
Asad Malik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.