Skip to content

maulana20/laravel-vue-role

Repository files navigation

laravel-vue-role

Getting Started

Sebagai pembelajaran penggunaan vue pada laravel 6.5.2 dan penggunaan role managament spatie-permission yang di sediakan pada laravel

sumber https://www.itsolutionstuff.com/post/laravel-58-user-roles-and-permissions-tutorialexample.html

Langkah sebelum memulai :

  • sudah menginstal composer (depedencies)
  • npm install

proses yang di jalan kan :

  • auth:api with jwt-auth
  • vue-auth (bearer token) with websanova
  • permission with spatie-permission

jalankan perintah penambahan table :

php artisan migrate

jalankan perintah penambahan data :

php artisan db:seed --class=PermissionTableSeeder
php artisan db:seed --class=CreateAdminUserSeeder

table pada spatie-permission table

login admin (username: admin@test.com password: admin) login

create role contoh staff role

create user contoh staff user

logout kemudian login dengan staff dan buka role list access

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published