1: <?php namespace Laravella\Crud;
2:
3: use Laravella\Crud\Log;
4: use \Seeder;
5: use \DB;
6:
7: class SeedUsergroups extends Seeder
8: {
9:
10:
11: public function run()
12: {
13:
14: DB::table('usergroups')->delete();
15:
16: $group = array('group'=>'superadmin');
17: DB::table('usergroups')->insert($group);
18: Log::write('info', 'superadmin usergroup created');
19:
20: $group = array('group'=>'admin');
21: DB::table('usergroups')->insert($group);
22: Log::write('info', 'admin usergroup created');
23:
24: $group = array('group'=>'manager');
25: DB::table('usergroups')->insert($group);
26: Log::write('info', 'manager usergroup created');
27:
28: $group = array('group'=>'user');
29: DB::table('usergroups')->insert($group);
30: Log::write('info', 'user usergroup created');
31:
32: $group = array('group'=>'guest');
33: DB::table('usergroups')->insert($group);
34: Log::write('info', 'guest usergroup created');
35:
36: }
37: }
38: ?>