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.
- Laravel 5.5
- Vue + VueRouter + Vuex + Iview + VueI18n
- Pages with custom layouts
- Login, register and password reset
- Authentication with JWT
- Socialite integration
- Install Composer using detailed installation instructions here
- Install Node.js using detailed installation instructions here
- Clone repository
$ git clone https://github.com/AbdullahGhanem/laravel-spa-iview.git
- Change into the working directory
$ cd laravel-spa-iview
- Copy
.env.example
to.env
and modify according to your environment
$ cp .env.example .env
- Install composer dependencies
$ composer install --prefer-dist
- An application key can be generated with the command
$ php artisan key:generate
- An application jwt key can be generated with the command
$ php artisan jwt:secret
- Execute following commands to install other dependencies
$ 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