-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ide_helper_models.php
255 lines (243 loc) · 11.2 KB
/
_ide_helper_models.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?php
// @formatter:off
/**
* A helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace App\Models{
/**
* App\Models\Link
*
* @property int $id
* @property string $code
* @property int $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Product[] $products
* @property-read int|null $products_count
* @property-read \App\Models\User $user
* @method static \Database\Factories\LinkFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Link newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Link newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Link query()
* @method static \Illuminate\Database\Eloquent\Builder|Link whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Link whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Link whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Link whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Link whereUserId($value)
*/
class Link extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\LinkProduct
*
* @property int $id
* @property int $link_id
* @property int $product_id
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct query()
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct whereLinkId($value)
* @method static \Illuminate\Database\Eloquent\Builder|LinkProduct whereProductId($value)
*/
class LinkProduct extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Order
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property string $email
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Order newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Order newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Order query()
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereFirstName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereLastName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read mixed $name
* @property-read mixed $total
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\OrderItem[] $orderItems
* @property-read int|null $order_items_count
* @property string $code
* @property int $user_id
* @property string $common_email
* @property string|null $address
* @property string|null $address2
* @property string|null $city
* @property string|null $country
* @property string|null $zip
* @property int $complete
* @property string|null $transaction_id
* @method static \Database\Factories\OrderFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereAddress($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereAddress2($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCommonEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereComplete($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCountry($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereTransactionId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereZip($value)
*/
class Order extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\OrderItem
*
* @property int $id
* @property int $order_id
* @property string $product_title
* @property string $price
* @property int $quantity
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem query()
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereOrderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem wherePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereProductTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read \App\Models\Order $order
* @property string $common_revenue
* @property string $admin_revenue
* @method static \Database\Factories\OrderItemFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereAdminRevenue($value)
* @method static \Illuminate\Database\Eloquent\Builder|OrderItem whereCommonRevenue($value)
*/
class OrderItem extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Permission
*
* @property int $id
* @property string $name
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $roles
* @property-read int|null $roles_count
* @method static \Illuminate\Database\Eloquent\Builder|Permission newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Permission newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Permission query()
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereName($value)
* @mixin \Eloquent
*/
class Permission extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Product
*
* @property int $id
* @property string $title
* @property string|null $description
* @property string $image
* @property string $price
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Database\Factories\ProductFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Product newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Product newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Product query()
* @method static \Illuminate\Database\Eloquent\Builder|Product whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereImage($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product wherePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Product extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Role
*
* @method static \Illuminate\Database\Eloquent\Builder|Role newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Role newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Role query()
* @method static \Illuminate\Database\Eloquent\Builder|Role whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Role whereName($value)
* @mixin \Eloquent
* @property int $id
* @property string $title
* @method static \Illuminate\Database\Eloquent\Builder|Role whereTitle($value)
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Permission[] $permissions
* @property-read int|null $permissions_count
*/
class Role extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property string $email
* @property string $password
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Passport\Client[] $clients
* @property-read int|null $clients_count
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Passport\Token[] $tokens
* @property-read int|null $tokens_count
* @method static \Database\Factories\UserFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User query()
* @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereFirstName($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereLastName($value)
* @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
* @mixin \Eloquent
* @property int|null $role_id
* @property-read \App\Models\Role|null $role
* @method static \Illuminate\Database\Eloquent\Builder|User whereRoleId($value)
* @property int $is_common
* @property-read mixed $revenue
* @method static \Illuminate\Database\Eloquent\Builder|User whereIsCommon($value)
*/
class User extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\UserRole
*
* @property int $id
* @property int $user_id
* @property int $role_id
* @method static \Illuminate\Database\Eloquent\Builder|UserRole newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserRole newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserRole query()
* @method static \Illuminate\Database\Eloquent\Builder|UserRole whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserRole whereRoleId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserRole whereUserId($value)
*/
class UserRole extends \Eloquent {}
}