The series of examples about how I write SPA with Laravel but not API uses a simple blog platform built with Laravel + Vue.js + Inertia.js + Tailwind CSS.
Run Composer after downloading the project:
composer install
Setting .env
file:
cp .env.example .env
vim .env
## .env
APP_URL=https://lightning.test
...
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lightning
DB_USERNAME=[username]
DB_PASSWORD=[password]
Run Migrate:
php artisan migrate
Then add a public link to the local Storage:
php artisan storage:link
Finally compile the front-end resources:
yarn
yarn dev
Author: ycs77
Source Code: https://github.com/ycs77/lightning
#vuejs #vue #javascript