Create Project
Just use one.
The are multiple as examples.
composer create-project --prefer-dist laravel/laravel blog "11.*" composer create-project --prefer-dist laravel/laravel blog "10.*" composer create-project --prefer-dist laravel/laravel blog "9.*"
Generate Auth
An alternative instead of running npm run build.
Run npm run dev OR npm run watch
// With Boothstrap composer require laravel/ui --dev php artisan ui bootstrap --auth npm install npm run build // With VUE composer require laravel/ui --dev php artisan ui vue --auth npm install npm run build
Uploading your js build to the server
If you using git and working locally and using laravel vite.
Build your project and use the below gitignore. This will push your build to the server.
The below is that if you don’t include certain directories then your build files will not get uploaded and some servers don’t have suffucient resources to run builds online.
So you need to build locally and upload the build via GIT.
/vendor/ npm-debug.log yarn-error.log public/hot public_html/storage public_html/hot public/robots.txt storage/*.key .env .htaccess Homestead.yaml Homestead.json /.vagrant .phpunit.result.cache