prepare project with Laravel + AdminLTE + Vue.js

install laravel 5.4 + adminlte-laravel + Vue.js

Config php.ini

Create project

run command

Setup adminlte package

ref : https://github.com/acacha/adminlte-laravel

run command

edit config/app.php

run command

Setup menu

ref : https://github.com/acacha/adminlte-laravel
ref : https://laravelcollective.com/

run command

edit config/app.php

run command

Install Excel package (optional) ไม่ต้องทำก็ได้

ref : https://github.com/Maatwebsite/Laravel-Excel

run command

edit config/app.php

image package (optional) ไม่ต้องทำก็ได้

ref : http://image.intervention.io/getting_started/installation

run command

edit config/app.php

run command

Install jwt-auth (optional) ไม่ต้องทำก็ได้

ref : https://github.com/tymondesigns/jwt-auth

run command

edit config/app.php

Setup Database

config database : config\database.php

config .env

config for mysql database not suuport utf8mb4

edit file .\database\seeds\DatabaseSeeder.php
add $this->call(AdminUserSeeder::class);

run command

Seed User (optiona ) ไม่ต้องทำก็ได้

edit file .\database\seeds\UsersTableSeeder.php

edit file .\database\seeds\DatabaseSeeder.php
by uncomment $this->call(UsersTableSeeder::class);

Start Internal Server for dev

run command

login at http://127.0.0.1:8000
email : admin@example.com
password : 123456

Develop with vuejs watch

ref : https://laravel.com/docs/5.4/frontend

for write vuejs with Auto Compile .vue on folder resources\assets\js

edit file ./webpack.mix.js and comment

run command

**** Fast Script

ไม่จำเป็นต้องทำขั้นตอนนี้เลย : No need to do this step.

edit config/app.php

Run Command

config

edit file .\database\seeds\DatabaseSeeder.php
add $this->call(AdminUserSeeder::class);

Setup User

Setup Database before migrate (วิธีการอยู่ด้านบน ๆ)

if error on npm watch