This is a simple example of using Laravel 5.8 and Vue 2 for creating CRUD applications with AJAX functionality.
https://laravel-ajax-crud.herokuapp.com
- Clone the repository:
git clone https://github.com/the94air/laravel-ajax-crud
cd laravel-ajax-crud
- Copy
.env
file:
cp .env.example .env
- Connect to database:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
- Install all the dependencies:
composer update
- Run:
php artisan key:generate
- migrate and seed the database:
php artisan migrate --seed
-
Done!
-
Optional: Install npm dependencies to modify
sass
andvue
files:
npm install
npm run dev