|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* rmarchiv.tk |
|
5
|
|
|
* (c) 2016-2017 by Marcel 'ryg' Hering |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
namespace App\Models; |
|
9
|
|
|
|
|
10
|
|
|
use GeneaLabs\LaravelModelCaching\Traits\Cachable; |
|
11
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
12
|
|
|
|
|
13
|
|
|
/** |
|
14
|
|
|
* Class UserSetting. |
|
15
|
|
|
* |
|
16
|
|
|
* @property int $id |
|
17
|
|
|
* @property int $user_id |
|
18
|
|
|
* @property int $is_admin |
|
19
|
|
|
* @property int $is_moderator |
|
20
|
|
|
* @property string $avatar_path |
|
21
|
|
|
* @property int $is_banned |
|
22
|
|
|
* @property string $deleted_at |
|
23
|
|
|
* @property \Carbon\Carbon $created_at |
|
24
|
|
|
* @property \Carbon\Carbon $updated_at |
|
25
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereId($value) |
|
26
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereUserId($value) |
|
27
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereIsAdmin($value) |
|
28
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereIsModerator($value) |
|
29
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereAvatarPath($value) |
|
30
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereIsBanned($value) |
|
31
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDeletedAt($value) |
|
32
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereCreatedAt($value) |
|
33
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereUpdatedAt($value) |
|
34
|
|
|
* @mixin \Eloquent |
|
35
|
|
|
* @property-read \App\Models\User $user |
|
36
|
|
|
* @property int $disable_widget_msg |
|
37
|
|
|
* @property int $disable_widget_cdc |
|
38
|
|
|
* @property int $disable_widget_gamesreleased |
|
39
|
|
|
* @property int $disable_widget_gamesadded |
|
40
|
|
|
* @property int $disable_widget_topmonth |
|
41
|
|
|
* @property int $disable_widget_alltimetop |
|
42
|
|
|
* @property int $disable_widget_news |
|
43
|
|
|
* @property int $disable_widget_board |
|
44
|
|
|
* @property int $disable_widget_shoutbox |
|
45
|
|
|
* @property int $disable_widget_search |
|
46
|
|
|
* @property int $disable_widget_tags |
|
47
|
|
|
* @property int $disable_widget_stats |
|
48
|
|
|
* @property int $disable_widget_obyx |
|
49
|
|
|
* @property int $disable_widget_comments |
|
50
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetAlltimetop($value) |
|
51
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetBoard($value) |
|
52
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetCdc($value) |
|
53
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetComments($value) |
|
54
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetGamesadded($value) |
|
55
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetGamesreleased($value) |
|
56
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetMsg($value) |
|
57
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetNews($value) |
|
58
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetObyx($value) |
|
59
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetSearch($value) |
|
60
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetShoutbox($value) |
|
61
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetStats($value) |
|
62
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetTags($value) |
|
63
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereDisableWidgetTopmonth($value) |
|
64
|
|
|
* @property int $rows_per_page_developer |
|
65
|
|
|
* @property int $rows_per_page_games |
|
66
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereRowsPerPageDeveloper($value) |
|
67
|
|
|
* @method static \Illuminate\Database\Query\Builder|\App\Models\UserSetting whereRowsPerPageGames($value) |
|
68
|
|
|
* @property-read \Illuminate\Database\Eloquent\Collection|\Venturecraft\Revisionable\Revision[] $revisionHistory |
|
69
|
|
|
* @property string $language |
|
70
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserSetting whereLanguage($value) |
|
71
|
|
|
* @property string $download_template |
|
72
|
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserSetting whereDownloadTemplate($value) |
|
73
|
|
|
*/ |
|
74
|
|
|
class UserSetting extends Model |
|
75
|
|
|
{ |
|
76
|
|
|
use \Venturecraft\Revisionable\RevisionableTrait; |
|
77
|
|
|
protected $table = 'user_settings'; |
|
78
|
|
|
|
|
79
|
|
|
public $timestamps = true; |
|
80
|
|
|
|
|
81
|
|
|
protected $fillable = [ |
|
82
|
|
|
'user_id', |
|
83
|
|
|
'is_admin', |
|
84
|
|
|
'is_moderator', |
|
85
|
|
|
'avatar_path', |
|
86
|
|
|
'is_banned', |
|
87
|
|
|
'disable_widget_msg', |
|
88
|
|
|
'disable_widget_cdc', |
|
89
|
|
|
'disable_widget_gamesreleased', |
|
90
|
|
|
'disable_widget_gamesadded', |
|
91
|
|
|
'disable_widget_topmonth', |
|
92
|
|
|
'disable_widget_alltimetop', |
|
93
|
|
|
'disable_widget_news', |
|
94
|
|
|
'disable_widget_board', |
|
95
|
|
|
'disable_widget_shoutbox', |
|
96
|
|
|
'disable_widget_search', |
|
97
|
|
|
'disable_widget_tags', |
|
98
|
|
|
'disable_widget_stats', |
|
99
|
|
|
'disable_widget_obyx', |
|
100
|
|
|
'disable_widget_comments', |
|
101
|
|
|
'language', |
|
102
|
|
|
'download_template', |
|
103
|
|
|
]; |
|
104
|
|
|
|
|
105
|
|
|
protected $guarded = []; |
|
106
|
|
|
|
|
107
|
|
|
public function user() |
|
108
|
|
|
{ |
|
109
|
|
|
return $this->belongsTo('App\Models\User', 'id', 'user_id'); |
|
110
|
|
|
} |
|
111
|
|
|
} |
|
112
|
|
|
|