Overview
The Laravel Public + Vue Private SPA is a basic setup that combines Laravel 8, Fortify, Tailwind, and Vue 2 to create a public facing website handled by Laravel and a private web app SPA using Vue. This setup allows for quick development without the need for server rendering for Vue.
Features
- Essential Auth Pages Included: All necessary authentication pages such as login, registration, and password reset are already included.
- Email Confirmation Sequence: The setup includes an email confirmation sequence for user verification.
- Private Web App SPA: The private web app is built using Vue JS and includes a defined private route URL (/app).
Installation
To install the Laravel Public + Vue Private SPA, follow these steps:
- Copy the
env.examplefile and rename it to.env. - Fill in the necessary details for the database and email in the
.envfile. - Install all dependencies by running
composer installandnpm installin the project directory. - Run the database migrations with
php artisan migrate. - Start the Laravel server with
php artisan servein one terminal. - In another terminal, run
npm run watchto compile the Vue components.
Summary
The Laravel Public + Vue Private SPA is a simple setup that combines Laravel and Vue to create a public facing website and a private web app SPA. It includes all the necessary authentication pages and allows for easy installation and customization. Users can quickly set up a basic public website handled by Laravel with a private web app that utilizes Vue JS.