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:
519 bytes
|
Rev | Line | |
---|
[7304c7f] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace Database\Seeders;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Database\Seeder;
|
---|
| 6 |
|
---|
[194a359] | 7 |
|
---|
| 8 |
|
---|
[7304c7f] | 9 | class PermissionsTableSeeder extends Seeder
|
---|
| 10 | {
|
---|
| 11 | /**
|
---|
| 12 | * Run the database seeds.
|
---|
| 13 | *
|
---|
| 14 | * @return void
|
---|
| 15 | */
|
---|
| 16 | public function run()
|
---|
| 17 | {
|
---|
[194a359] | 18 | \DB::table('permissions')->insert([
|
---|
| 19 | ["name" => "create_user"], // Create new user
|
---|
| 20 | ["name" => "access_all_users"], // Access to all users to manage
|
---|
| 21 | ["name" => "access_all_departments"], // Access to all departments to manage
|
---|
| 22 | ]);
|
---|
[7304c7f] | 23 | }
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.