|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace App\Modules\V1\Notifications\Database\Seeds; |
|
4
|
|
|
|
|
5
|
|
|
use Illuminate\Database\Seeder; |
|
6
|
|
|
|
|
7
|
|
|
class NotificationsTableSeeder extends Seeder |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* Run the database seeds. |
|
11
|
|
|
* |
|
12
|
|
|
* @return void |
|
13
|
|
|
*/ |
|
14
|
|
|
public function run() |
|
15
|
|
|
{ |
|
16
|
|
|
/** |
|
17
|
|
|
* Insert the permissions related to settings table. |
|
18
|
|
|
*/ |
|
19
|
|
|
\DB::table('permissions')->insert( |
|
20
|
|
|
[ |
|
21
|
|
|
/** |
|
22
|
|
|
* notifications model permissions. |
|
23
|
|
|
*/ |
|
24
|
|
|
[ |
|
25
|
|
|
'name' => 'find', |
|
26
|
|
|
'model' => 'notifications', |
|
27
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
28
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
29
|
|
|
], |
|
30
|
|
|
[ |
|
31
|
|
|
'name' => 'search', |
|
32
|
|
|
'model' => 'notifications', |
|
33
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
34
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
35
|
|
|
], |
|
36
|
|
|
[ |
|
37
|
|
|
'name' => 'list', |
|
38
|
|
|
'model' => 'notifications', |
|
39
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
40
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
41
|
|
|
], |
|
42
|
|
|
[ |
|
43
|
|
|
'name' => 'findby', |
|
44
|
|
|
'model' => 'notifications', |
|
45
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
46
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
47
|
|
|
], |
|
48
|
|
|
[ |
|
49
|
|
|
'name' => 'first', |
|
50
|
|
|
'model' => 'notifications', |
|
51
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
52
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
53
|
|
|
], |
|
54
|
|
|
[ |
|
55
|
|
|
'name' => 'paginate', |
|
56
|
|
|
'model' => 'notifications', |
|
57
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
58
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
59
|
|
|
], |
|
60
|
|
|
[ |
|
61
|
|
|
'name' => 'paginateby', |
|
62
|
|
|
'model' => 'notifications', |
|
63
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
64
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
65
|
|
|
], |
|
66
|
|
|
[ |
|
67
|
|
|
'name' => 'notified', |
|
68
|
|
|
'model' => 'notifications', |
|
69
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
70
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
71
|
|
|
], |
|
72
|
|
|
[ |
|
73
|
|
|
'name' => 'notifyall', |
|
74
|
|
|
'model' => 'notifications', |
|
75
|
|
|
'created_at' => \DB::raw('NOW()'), |
|
76
|
|
|
'updated_at' => \DB::raw('NOW()') |
|
77
|
|
|
] |
|
78
|
|
|
] |
|
79
|
|
|
); |
|
80
|
|
|
} |
|
81
|
|
|
} |
|
82
|
|
|
|