Laravel 5 Boilerplate / Starter kit with iview
Laravel Boilerplate provides a very flexible and extensible way of building your custom Laravel 5 applications with vue by Iview.
$ git clone https://github.com/AbdullahGhanem/laravel-spa-iview.git
$ cd laravel-spa-iview
.env.example
to .env
and modify according to your environment$ cp .env.example .env
$ composer install --prefer-dist
$ php artisan key:generate
$ php artisan jwt:secret
$ npm install
$ npm run dev
If you get an error like a PDOException
try editing your .env
file and change DB_HOST=127.0.0.1
to DB_HOST=localhost
or DB_HOST=mysql
(for docker-compose environment).
# build and watch
npm run watch
# serve with hot reloading
npm run hot
npm run production