develop
Last change
on this file since 194a359 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
549 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Database\Seeders;
|
---|
4 |
|
---|
5 | use Illuminate\Database\Seeder;
|
---|
6 |
|
---|
7 | class RolesPermissionsTableSeeder extends Seeder
|
---|
8 | {
|
---|
9 | /**
|
---|
10 | * Run the database seeds.
|
---|
11 | *
|
---|
12 | * @return void
|
---|
13 | */
|
---|
14 | public function run()
|
---|
15 | {
|
---|
16 | \DB::table('roles_permissions')->insert([
|
---|
17 | // Admin
|
---|
18 | ["role_id" => 1, "permission_id" => 1],
|
---|
19 | ["role_id" => 1, "permission_id" => 2],
|
---|
20 | ["role_id" => 1, "permission_id" => 3],
|
---|
21 |
|
---|
22 | // Referent
|
---|
23 | ["role_id" => 2, "permission_id" => 3]
|
---|
24 | ]);
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.