DEV Community

Discussion on: Deploying Laravel8 app on shared-hosting (Hostinger)🌎

Collapse
 
cangak profile image
cangak • Edited

solv the issue with artisan route:cache and route:clear
i use git instead comprezz and upload, but i have same exact folder struckture,
/home
-user
-laravel
-public_html
UnexpectedValueException
Invalid route action: [C:32:"Opis\Closure\SerializableClosure":210:{a:5:{s:3:"use";a:0:{}s:8:"function";s:44:"function () { return \view('welcome'); }";s:5:"scope";s:37:"Illuminate\Routing\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"000000001ac450da000000003105971b";}}].

i have try
Route::view('/', 'welcome');
or
Route::get('/', function () {
return 'Hello World';
});
it stille the same error.

by the way, my installation running well in my local computer. and there is another laravel installation in my hosting, but laravel 7 and running with no problem.
thanks in advance

Collapse
 
pushpak1300 profile image
Pushpak Chhajed

I don't understand the question . Can you please post this on stackoverflow and share the link here?

Collapse
 
cangak profile image
cangak

sorry my bad english.
my index always return
UnexpectedValueException
Invalid route action: [C:32:"Opis\Closure\SerializableClosure":210:{a:5:{s:3:"use";a:0:{}s:8:"function";s:44:"function () { return \view('welcome'); }";s:5:"scope";s:37:"Illuminate\Routing\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"000000001ac450da000000003105971b";}}].

but i have solve it by artisan route:cache and route:clear

Some comments have been hidden by the post's author - find out more