- composer install, check your env, run key:generate, npm install, all that sh!t. (If you need the full steps comment below)
npm run prod
, that will build all Vue stuff and put them in the /public laravel folder- open your Vue router file and set the route base to the subdir (without public, with / at start and end, so if you're deploying to /demo/foo/, type "/demo/foo" as the base). 3.1. You can google how to set route base in vue
- go back to the Laravel folder, rename server.php to index.php
- copy css, js, assets, fonts, favicon.ico and .htaccess from public folder to root of Laravel project folder
- that's it, try accessing your site now
Two options:
- Copy your
assets
folder to the root of your webserver directory. - IDK, spend hours trying to do it the right way or something.
Copy your favicon.ico
file to the root of your webserver directory.
Note: sometimes I have .example files I set up myself, so check those too.