-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ide_helper_models.php
164 lines (158 loc) · 8.04 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
<?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 <[email protected]>
*/
namespace App\Models{
/**
* App\Models\File
*
* @property int $id
* @property int $user_id
* @property int $folder_id
* @property string $name
* @property string $storage_name
* @property int $is_uploaded
* @property string $mime
* @property int $size
* @property \App\Enums\Permission|null $read
* @property array|null $read_users
* @property \App\Enums\Permission|null $write
* @property array|null $write_users
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $created_by
* @property-read \App\Models\User|null $creator
* @property-read \App\Models\User $fileCreatedBy
* @property-read \App\Models\User $fileDeletedBy
* @property-read \App\Models\User $fileIncludedBy
* @property-read \App\Models\User $fileUpdatedBy
* @property-read \App\Models\Folder $folder
* @property-read string $download_url
* @property-read string $extension
* @property-read string $human_size
* @property-read string $key
* @property-read string $path
* @property-read string $url
* @property-read \App\Models\User $owner
* @method static \Illuminate\Database\Eloquent\Builder|File newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|File newQuery()
* @method static \Illuminate\Database\Query\Builder|File onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|File query()
* @method static \Illuminate\Database\Eloquent\Builder|File whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereCreatedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereFolderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereIsUploaded($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereMime($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereRead($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereReadUsers($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereSize($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereStorageName($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereWrite($value)
* @method static \Illuminate\Database\Eloquent\Builder|File whereWriteUsers($value)
* @method static \Illuminate\Database\Query\Builder|File withTrashed()
* @method static \Illuminate\Database\Query\Builder|File withoutTrashed()
*/
class File extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Folder
*
* @property int $id
* @property int $user_id
* @property int|null $folder_id
* @property string $name
* @property \App\Enums\Permission|null $read
* @property array|null $read_users
* @property \App\Enums\Permission|null $write
* @property array|null $write_users
* @property \App\Enums\Permission|null $upload
* @property array|null $upload_users
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property int|null $created_by
* @property-read \App\Models\User|null $creator
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\File[] $files
* @property-read int|null $files_count
* @property-read \App\Models\User $folderCreatedBy
* @property-read \App\Models\User $folderDeletedBy
* @property-read \App\Models\User $folderIncludedBy
* @property-read \App\Models\User $folderUpdatedBy
* @property-read \Illuminate\Database\Eloquent\Collection|Folder[] $folders
* @property-read int|null $folders_count
* @property-read string $key
* @property-read string $path
* @property-read \App\Models\User $owner
* @property-read Folder|null $parent
* @method static \Illuminate\Database\Eloquent\Builder|Folder newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Folder newQuery()
* @method static \Illuminate\Database\Query\Builder|Folder onlyTrashed()
* @method static \Illuminate\Database\Eloquent\Builder|Folder query()
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereCreatedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereDeletedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereFolderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereRead($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereReadUsers($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereUpload($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereUploadUsers($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereWrite($value)
* @method static \Illuminate\Database\Eloquent\Builder|Folder whereWriteUsers($value)
* @method static \Illuminate\Database\Query\Builder|Folder withTrashed()
* @method static \Illuminate\Database\Query\Builder|Folder withoutTrashed()
*/
class Folder extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\User
*
* @property int $id
* @property string $name
* @property string $email
* @property \Illuminate\Support\Carbon|null $email_verified_at
* @property string $password
* @property string|null $remember_token
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property-read string $key
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
* @property-read int|null $notifications_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 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 whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($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 {}
}