-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ide_helper_models.php
179 lines (171 loc) · 7.97 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
<?php
// @formatter:off
// phpcs:ignoreFile
/**
* 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\Permission
*
* @property int $id
* @property string $group
* @property string $name
* @property string $description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \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 whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Permission whereGroup($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\PermissionRole
*
* @property int $id
* @property int $permission_id
* @property int $role_id
* @property bool|null $owner_restricted
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole query()
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole whereOwnerRestricted($value)
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole wherePermissionId($value)
* @method static \Illuminate\Database\Eloquent\Builder|PermissionRole whereRoleId($value)
*/
class PermissionRole extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Role
*
* @property int $id
* @property string $name
* @property string $label
* @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<int, \App\Models\Permission> $permissions
* @property-read int|null $permissions_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\User> $users
* @property-read int|null $users_count
* @method static \App\Filters\RoleFilter|Role filter(array $filters)
* @method static \App\Filters\RoleFilter|Role newModelQuery()
* @method static \App\Filters\RoleFilter|Role newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Role onlyTrashed()
* @method static \App\Filters\RoleFilter|Role orderByField($field, $direction)
* @method static \App\Filters\RoleFilter|Role query()
* @method static \App\Filters\RoleFilter|Role search($term = null)
* @method static \App\Filters\RoleFilter|Role whereCreatedAt($value)
* @method static \App\Filters\RoleFilter|Role whereDeletedAt($value)
* @method static \App\Filters\RoleFilter|Role whereId($value)
* @method static \App\Filters\RoleFilter|Role whereLabel($value)
* @method static \App\Filters\RoleFilter|Role whereName($value)
* @method static \App\Filters\RoleFilter|Role whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Role withTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Role withoutTrashed()
*/
class Role extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\TutoringSession
*
* @property int $id
* @property string $comment
* @property int $duration
* @property int $paid
* @property int $student_id
* @property int $tutor_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession query()
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereComment($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereDuration($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession wherePaid($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereStudentId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereTutorId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TutoringSession whereUpdatedAt($value)
*/
class TutoringSession extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property int $owner_id
* @property int $role_id
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string|null $password
* @property string|null $remember_token
* @property string|null $image
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property string|null $name
* @property string|null $phone_number
* @property int|null $parent_id
* @property-read string $image_file
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read int|null $notifications_count
* @property-read User $owner
* @property-read \App\Models\Role $role
* @method static \App\Filters\UserFilter|User filter(array $filters)
* @method static \App\Filters\UserFilter|User newModelQuery()
* @method static \App\Filters\UserFilter|User newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|User onlyTrashed()
* @method static \App\Filters\UserFilter|User orderByField($field, $direction)
* @method static \App\Filters\UserFilter|User query()
* @method static \App\Filters\UserFilter|User roleId($roleId = null)
* @method static \App\Filters\UserFilter|User search($term = null)
* @method static \App\Filters\UserFilter|User whereCreatedAt($value)
* @method static \App\Filters\UserFilter|User whereDeletedAt($value)
* @method static \App\Filters\UserFilter|User whereEmail($value)
* @method static \App\Filters\UserFilter|User whereEmailVerifiedAt($value)
* @method static \App\Filters\UserFilter|User whereId($value)
* @method static \App\Filters\UserFilter|User whereImage($value)
* @method static \App\Filters\UserFilter|User whereName($value)
* @method static \App\Filters\UserFilter|User whereOwnerId($value)
* @method static \App\Filters\UserFilter|User whereParentId($value)
* @method static \App\Filters\UserFilter|User wherePassword($value)
* @method static \App\Filters\UserFilter|User wherePhoneNumber($value)
* @method static \App\Filters\UserFilter|User whereRememberToken($value)
* @method static \App\Filters\UserFilter|User whereRoleId($value)
* @method static \App\Filters\UserFilter|User whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User withTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|User withoutTrashed()
*/
class User extends \Eloquent {}
}
namespace Illuminate\Contracts\Auth {
interface Guard
{
/**
* Get the currently authenticated user.
*
* @return \App\User|null
*/
public function user();
}
}