Installed laravel-permission and laravel-modules

This commit is contained in:
Gregorio Chiko Putra
2018-07-30 09:26:17 +07:00
parent 70fe3a814c
commit eee570125d
86 changed files with 23539 additions and 253 deletions

View File

@@ -0,0 +1,21 @@
<?php
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;
class RolesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Role::create(['name' => 'staff', 'guard_name' => 'api']);
Role::create(['name' => 'supervisor', 'guard_name' => 'api']);
Role::create(['name' => 'manajer', 'guard_name' => 'api']);
Role::create(['name' => 'hrd', 'guard_name' => 'api']);
Role::create(['name' => 'chairwoman', 'guard_name' => 'api']);
}
}