develop
Last change
on this file since 9b4689a was 195c3cf, checked in by beratkjufliju <kufliju@…>, 3 years ago |
edited seeders
|
-
Property mode
set to
100644
|
File size:
600 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace Database\Seeders;
|
---|
4 |
|
---|
5 | use Illuminate\Database\Seeder;
|
---|
6 |
|
---|
7 | class RolesTableSeeder extends Seeder
|
---|
8 | {
|
---|
9 | /**
|
---|
10 | * Run the database seeds.
|
---|
11 | *
|
---|
12 | * @return void
|
---|
13 | */
|
---|
14 | public function run()
|
---|
15 | {
|
---|
16 | \DB::table('roles')->insert([
|
---|
17 | ["id" => "1", "name" => "Admin"], // Have access to all users(managing users), departments, folders etc
|
---|
18 | ["id" => "2", "name" => "Referent"], // Have access to manage and view all departments, folders etc
|
---|
19 | ["id" => "3", "name" => "Viewer"], // Have access to view all departments, folders etc
|
---|
20 | ]);
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.