/vue-laravel-crud

Full-stack Vue + Laravel + Axios CRUD example

Primary LanguagePHP

vue-laravel-crud

Vue 2.5 + Laravel 5.5 + Axios CRUD example app

Inspiration from https://github.com/herusdianto/laravel-vue-crud

Installation

  1. Clone repo

  2. Change to directory

cd vue-laravel-crud
  1. Install dependencies
composer install
  1. Copy .env file
cp .env.example .env
  1. Modify DB_* value in .env with your database config.

  2. Generate application key:

php artisan key:generate
  1. Migrate
php artisan migrate
  1. Install Node modules
npm install
  1. Build
npm run prod

Dummy Data

  1. Open Tinker
php artisan tinker
  1. Use factory script
factory(App\Crud::class, 3)->create();