-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ide_helper_models.php
184 lines (175 loc) · 8.37 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
<?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 <[email protected]>
*/
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string $type
* @property string $picture
* @property int $is_private
* @property \Illuminate\Support\Carbon|null $last_message
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\ChatAdmin|null $admin
* @property-read \App\Models\Message|null $lastMessage
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Message> $messages
* @property-read int|null $messages_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\UserChat> $userChats
* @property-read int|null $user_chats_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\User> $users
* @property-read int|null $users_count
* @method static \Illuminate\Database\Eloquent\Builder|Chat newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Chat newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Chat query()
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereIsPrivate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereLastMessage($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat wherePicture($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Chat whereUpdatedAt($value)
*/
class Chat extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int $chat_id
* @property int $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Chat $chat
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin query()
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin whereChatId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChatAdmin whereUserId($value)
*/
class ChatAdmin extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int|null $user_id
* @property int $chat_id
* @property string $content
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Chat $chat
* @property-read \App\Models\User|null $user
* @method static \Illuminate\Database\Eloquent\Builder|Message newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Message newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Message query()
* @method static \Illuminate\Database\Eloquent\Builder|Message whereChatId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Message whereContent($value)
* @method static \Illuminate\Database\Eloquent\Builder|Message whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Message whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Message whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Message whereUserId($value)
*/
class Message extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $nickname
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property mixed $password
* @property string $profile_picture
* @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<int, \App\Models\Message> $messages
* @property-read int|null $messages_count
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\UserBlock> $userBlocks
* @property-read int|null $user_blocks_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\UserChat> $userChats
* @property-read int|null $user_chats_count
* @method static \Database\Factories\UserFactory factory($count = null, $state = [])
* @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 whereEmailVerifiedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereNickname($value)
* @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereProfilePicture($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereUpdatedAt($value)
*/
class User extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int $user_id
* @property int $blocked_user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\User $blockedUser
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock query()
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock whereBlockedUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserBlock whereUserId($value)
*/
class UserBlock extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int $user_id
* @property int $chat_id
* @property string $name
* @property \Illuminate\Support\Carbon|null $last_read
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Chat $chat
* @property-read \App\Models\User $user
* @method static \Illuminate\Database\Eloquent\Builder|UserChat newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserChat newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|UserChat query()
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereChatId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereLastRead($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|UserChat whereUserId($value)
*/
class UserChat extends \Eloquent {}
}