[Vuejs]-How to deploy vue.js and laravel appllication on shared hosting

0👍

Like @Gaurave Dave had suggested in the comment section,

you can insert a code in your web.php for all request to go to a view. An example is given below.

Route::get('/{any}', function(){
   return view('index');
})->where('any', '.*');

so inside your index.blade.php, you can insert your Vue script code or component, this will serve as landing for your Vue app.

Leave a comment