Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function run() |
||
15 | { |
||
16 | /** |
||
17 | * Insert the permissions related to settings table. |
||
18 | */ |
||
19 | \DB::table('permissions')->insert( |
||
20 | [ |
||
21 | /** |
||
22 | * Reports model permissions. |
||
23 | */ |
||
24 | [ |
||
25 | 'name' => 'index', |
||
26 | 'model' => 'report', |
||
27 | 'created_at' => \DB::raw('NOW()'), |
||
28 | 'updated_at' => \DB::raw('NOW()') |
||
29 | ], |
||
30 | [ |
||
31 | 'name' => 'find', |
||
32 | 'model' => 'report', |
||
33 | 'created_at' => \DB::raw('NOW()'), |
||
34 | 'updated_at' => \DB::raw('NOW()') |
||
35 | ], |
||
36 | [ |
||
37 | 'name' => 'admin_count', |
||
38 | 'model' => 'report', |
||
39 | 'created_at' => \DB::raw('NOW()'), |
||
40 | 'updated_at' => \DB::raw('NOW()') |
||
41 | ] |
||
42 | ] |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |