1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use Illuminate\Database\Seeder; |
4
|
|
|
|
5
|
|
|
class PushNotificationsDevicesTableSeeder extends Seeder |
|
|
|
|
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* Run the database seeds. |
9
|
|
|
* |
10
|
|
|
* @return void |
11
|
|
|
*/ |
12
|
|
|
public function run() |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* Insert the permissions related to settings table. |
16
|
|
|
*/ |
17
|
|
|
DB::table('permissions')->insert( |
18
|
|
|
[ |
19
|
|
|
/** |
20
|
|
|
* pushNotificationDevices model permissions. |
21
|
|
|
*/ |
22
|
|
|
[ |
23
|
|
|
'name' => 'find', |
24
|
|
|
'model' => 'pushNotificationDevices', |
25
|
|
|
'created_at' => \DB::raw('NOW()'), |
26
|
|
|
'updated_at' => \DB::raw('NOW()') |
27
|
|
|
], |
28
|
|
|
[ |
29
|
|
|
'name' => 'search', |
30
|
|
|
'model' => 'pushNotificationDevices', |
31
|
|
|
'created_at' => \DB::raw('NOW()'), |
32
|
|
|
'updated_at' => \DB::raw('NOW()') |
33
|
|
|
], |
34
|
|
|
[ |
35
|
|
|
'name' => 'list', |
36
|
|
|
'model' => 'pushNotificationDevices', |
37
|
|
|
'created_at' => \DB::raw('NOW()'), |
38
|
|
|
'updated_at' => \DB::raw('NOW()') |
39
|
|
|
], |
40
|
|
|
[ |
41
|
|
|
'name' => 'findby', |
42
|
|
|
'model' => 'pushNotificationDevices', |
43
|
|
|
'created_at' => \DB::raw('NOW()'), |
44
|
|
|
'updated_at' => \DB::raw('NOW()') |
45
|
|
|
], |
46
|
|
|
[ |
47
|
|
|
'name' => 'first', |
48
|
|
|
'model' => 'pushNotificationDevices', |
49
|
|
|
'created_at' => \DB::raw('NOW()'), |
50
|
|
|
'updated_at' => \DB::raw('NOW()') |
51
|
|
|
], |
52
|
|
|
[ |
53
|
|
|
'name' => 'paginate', |
54
|
|
|
'model' => 'pushNotificationDevices', |
55
|
|
|
'created_at' => \DB::raw('NOW()'), |
56
|
|
|
'updated_at' => \DB::raw('NOW()') |
57
|
|
|
], |
58
|
|
|
[ |
59
|
|
|
'name' => 'paginateby', |
60
|
|
|
'model' => 'pushNotificationDevices', |
61
|
|
|
'created_at' => \DB::raw('NOW()'), |
62
|
|
|
'updated_at' => \DB::raw('NOW()') |
63
|
|
|
], |
64
|
|
|
[ |
65
|
|
|
'name' => 'save', |
66
|
|
|
'model' => 'pushNotificationDevices', |
67
|
|
|
'created_at' => \DB::raw('NOW()'), |
68
|
|
|
'updated_at' => \DB::raw('NOW()') |
69
|
|
|
], |
70
|
|
|
[ |
71
|
|
|
'name' => 'delete', |
72
|
|
|
'model' => 'pushNotificationDevices', |
73
|
|
|
'created_at' => \DB::raw('NOW()'), |
74
|
|
|
'updated_at' => \DB::raw('NOW()') |
75
|
|
|
], |
76
|
|
|
[ |
77
|
|
|
'name' => 'deleted', |
78
|
|
|
'model' => 'pushNotificationDevices', |
79
|
|
|
'created_at' => \DB::raw('NOW()'), |
80
|
|
|
'updated_at' => \DB::raw('NOW()') |
81
|
|
|
], |
82
|
|
|
[ |
83
|
|
|
'name' => 'restore', |
84
|
|
|
'model' => 'pushNotificationDevices', |
85
|
|
|
'created_at' => \DB::raw('NOW()'), |
86
|
|
|
'updated_at' => \DB::raw('NOW()') |
87
|
|
|
] |
88
|
|
|
] |
89
|
|
|
); |
90
|
|
|
} |
91
|
|
|
} |
92
|
|
|
|
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.