Skip to content

Role based (user / admin) Laravel boilerplate application with admin area written in Vue.js + Vue Router + Vuex + REST API.

Notifications You must be signed in to change notification settings

migda/laravel-vue-admin

Repository files navigation

Laravel 5.8 boilerplate with Vue.js 2 + Vuex + VueRouter

Role based (user / admin) Laravel boilerplate application with admin area written in Vue.js + Vue Router + REST API.

Admin area (after successful login + auth as an admin): http://127.0.0.1:8000/admin

Libraries and frameworks I used in this project:

Instalation

- Composer:
* cmd: composer install
- Laravel:
* cmd: cp .env.example .env (copy .env.example file and rename copied file to .env)
* modify .env and set up db connection
* cmd: php artisan key:generate
* cmd: php artisan migrate
* browser: register user via register form
* db query: access to admin panel: UPDATE users SET role_id = 2 WHERE id = 1; #users.id == 1

- PHPUnit:
* configure your .env file and db connection (TEST_)
* php artisan migrate --database=test

- Vue.js:
*cmd: npm install
*cmd: npm run dev

You can find admin assetss in resource/admin/. Frontend (user) and backend (admin panel) are separeted.

About

Role based (user / admin) Laravel boilerplate application with admin area written in Vue.js + Vue Router + Vuex + REST API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published