source:
database/seeders/RolesTableSeeder.php@
194a359
Last change on this file since 194a359 was 194a359, checked in by , 3 years ago | |
---|---|
|
|
File size: 463 bytes |
Rev | Line | |
---|---|---|
[7304c7f] | 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([ | |
[194a359] | 17 | ["name" => "Admin"], // Have access to all users(managing users), departments, documents etc |
18 | ["name" => "Referent"], // Have access to all departments, documents etc | |
[7304c7f] | 19 | ]); |
20 | } | |
21 | } |
Note:
See TracBrowser
for help on using the repository browser.