forked from RoduanKD/markit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ide_helper_models.php
373 lines (359 loc) · 18.5 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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<?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\Area
*
* @property int $id
* @property array $name
* @property int $city_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \App\Models\City $city
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\CoveredArea[] $covered_areas
* @property-read int|null $covered_areas_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $users
* @property-read int|null $users_count
* @method static \Illuminate\Database\Eloquent\Builder|Area newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Area newQuery()
* @method static \Illuminate\Database\Query\Builder|Area onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Area query()
* @method static \Illuminate\Database\Eloquent\Builder|Area whereCityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Area whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Area whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Area whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Area whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Area whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Area withTrashed()
* @method static \Illuminate\Database\Query\Builder|Area withoutTrashed()
*/
class Area extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\City
*
* @property int $id
* @property array $name
* @property int $country_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Area[] $areas
* @property-read int|null $areas_count
* @property-read \App\Models\Country $country
* @method static \Illuminate\Database\Eloquent\Builder|City newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|City newQuery()
* @method static \Illuminate\Database\Query\Builder|City onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|City query()
* @method static \Illuminate\Database\Eloquent\Builder|City whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|City whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|City withTrashed()
* @method static \Illuminate\Database\Query\Builder|City withoutTrashed()
*/
class City extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Comment
*
* @property int $id
* @property int $author_id
* @property string $content
* @property string $commentable_type
* @property int $commentable_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \App\Models\User $author
* @property-read \Illuminate\Database\Eloquent\Model|\Eloquent $commentable
* @method static \Illuminate\Database\Eloquent\Builder|Comment newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Comment newQuery()
* @method static \Illuminate\Database\Query\Builder|Comment onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Comment query()
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereAuthorId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereCommentableId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereCommentableType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereContent($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Comment whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Comment withTrashed()
* @method static \Illuminate\Database\Query\Builder|Comment withoutTrashed()
*/
class Comment extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Country
*
* @property int $id
* @property array $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\City[] $cities
* @property-read int|null $cities_count
* @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Country newQuery()
* @method static \Illuminate\Database\Query\Builder|Country onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Country query()
* @method static \Illuminate\Database\Eloquent\Builder|Country whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Country whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Country withTrashed()
* @method static \Illuminate\Database\Query\Builder|Country withoutTrashed()
*/
class Country extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\CoveredArea
*
* @property int $area_id
* @property int $employee_id
* @property-read \App\Models\Area $area
* @property-read \App\Models\User $employee
* @method static \Illuminate\Database\Eloquent\Builder|CoveredArea newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CoveredArea newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CoveredArea query()
* @method static \Illuminate\Database\Eloquent\Builder|CoveredArea whereAreaId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CoveredArea whereEmployeeId($value)
*/
class CoveredArea extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\DeliveryTask
*
* @property int $id
* @property int $employee_id
* @property int $order_id
* @property int $eta
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Comment[] $comments
* @property-read int|null $comments_count
* @property-read \App\Models\User $employee
* @property-read \App\Models\Order|null $order
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask newQuery()
* @method static \Illuminate\Database\Query\Builder|DeliveryTask onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask query()
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereEmployeeId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereEta($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereOrderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DeliveryTask whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|DeliveryTask withTrashed()
* @method static \Illuminate\Database\Query\Builder|DeliveryTask withoutTrashed()
*/
class DeliveryTask extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Order
*
* @property int $id
* @property int $buyer_id
* @property int $seller_id
* @property int $product_id
* @property int $payment_method
* @property int $status
* @property int $quantity
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $buyer
* @property-read \App\Models\User $seller
* @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 whereBuyerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order wherePaymentMethod($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereProductId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereSellerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|Order whereUpdatedAt($value)
*/
class Order extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Permission
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $role
* @property-read int|null $role_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $users
* @property-read int|null $users_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 whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereUpdatedAt($value)
*/
class Permission extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Product
*
* @property int $id
* @property array $name
* @property array $description
* @property int $price
* @property int $quantity
* @property int $currency_id
* @property int $category_id
* @property int $area_id
* @property int $owner_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read \App\Models\Area $area
* @property-read mixed $average_rating
* @property-read mixed $sum_rating
* @property-read mixed $user_average_rating
* @property-read mixed $user_sum_rating
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection|\Spatie\MediaLibrary\MediaCollections\Models\Media[] $media
* @property-read int|null $media_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Order[] $orders
* @property-read int|null $orders_count
* @property-read \Illuminate\Database\Eloquent\Collection|\willvincent\Rateable\Rating[] $ratings
* @property-read int|null $ratings_count
* @method static \Illuminate\Database\Eloquent\Builder|Product category($category)
* @method static \Illuminate\Database\Eloquent\Builder|Product newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Product newQuery()
* @method static \Illuminate\Database\Query\Builder|Product onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Product query()
* @method static \Illuminate\Database\Eloquent\Builder|Product rate()
* @method static \Illuminate\Database\Eloquent\Builder|Product rateSort($order = 'desc')
* @method static \Illuminate\Database\Eloquent\Builder|Product whereAreaId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereCategoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereDeletedAt($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 whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereOwnerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product wherePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Product whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|Product withTrashed()
* @method static \Illuminate\Database\Query\Builder|Product withoutTrashed()
*/
class Product extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
* App\Models\Role
*
* @property int $id
* @property string $name
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Permission[] $permissions
* @property-read int|null $permissions_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $users
* @property-read int|null $users_count
* @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 whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Role whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Role whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Role whereUpdatedAt($value)
*/
class Role extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property string $firstname
* @property string $lastname
* @property string $email
* @property string $phone
* @property int $is_male
* @property string $birthdate
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string $password
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property string|null $remember_token
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Area[] $areas
* @property-read int|null $areas_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Comment[] $comment
* @property-read int|null $comment_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\DeliveryTask[] $delivery_task
* @property-read int|null $delivery_task_count
* @property-read mixed $average_rating
* @property-read mixed $sum_rating
* @property-read mixed $user_average_rating
* @property-read mixed $user_sum_rating
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Order[] $order
* @property-read int|null $order_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Permission[] $permission
* @property-read int|null $permission_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Product[] $product
* @property-read int|null $product_count
* @property-read \Illuminate\Database\Eloquent\Collection|\willvincent\Rateable\Rating[] $ratings
* @property-read int|null $ratings_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $role
* @property-read int|null $role_count
* @property-read \Illuminate\Database\Eloquent\Collection|\Laravel\Sanctum\PersonalAccessToken[] $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\Query\Builder|User onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|User query()
* @method static \Illuminate\Database\Eloquent\Builder|User whereBirthdate($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereEmailVerifiedAt($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 whereIsMale($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 wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|User withTrashed()
* @method static \Illuminate\Database\Query\Builder|User withoutTrashed()
*/
class User extends \Eloquent {}
}