anthonygore / vue-laravel-crud

Full-stack Vue + Laravel + Axios CRUD example
377 stars 177 forks source link

vue-laravel-crud

Vue 2.6 + Laravel 6 + Axios CRUD example app

See https://vuejsdevelopers.com/2018/02/05/vue-laravel-crud/ 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
  2. Install Node modules

    npm install
  3. Build

npm run prod

Dummy Data

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