@@ -69,11 +69,11 @@ |
||
69 | 69 | protected $guarded = []; |
70 | 70 | protected $dates = ['deleted_at']; |
71 | 71 | |
72 | - public function gamefiletype(){ |
|
72 | + public function gamefiletype() { |
|
73 | 73 | return $this->hasOne('App\Models\GamesFilesType', 'id', 'release_type'); |
74 | 74 | } |
75 | 75 | |
76 | - public function game(){ |
|
76 | + public function game() { |
|
77 | 77 | return $this->belongsTo('App\Models\Game', 'game_id', 'id')->with('maker', 'developers'); |
78 | 78 | } |
79 | 79 |
@@ -56,19 +56,19 @@ |
||
56 | 56 | |
57 | 57 | protected $guarded = []; |
58 | 58 | |
59 | - public function user(){ |
|
59 | + public function user() { |
|
60 | 60 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
61 | 61 | } |
62 | 62 | |
63 | - public function cat(){ |
|
63 | + public function cat() { |
|
64 | 64 | return $this->hasOne('App\Models\AwardCat', 'id', 'award_cat_id'); |
65 | 65 | } |
66 | 66 | |
67 | - public function page(){ |
|
67 | + public function page() { |
|
68 | 68 | return $this->hasOne('App\Models\AwardPage', 'id', 'award_page_id'); |
69 | 69 | } |
70 | 70 | |
71 | - public function subcat(){ |
|
71 | + public function subcat() { |
|
72 | 72 | return $this->hasOne('App\Models\AwardSubcat', 'id', 'award_subcat_id'); |
73 | 73 | } |
74 | 74 | } |
75 | 75 | \ No newline at end of file |
@@ -80,31 +80,31 @@ |
||
80 | 80 | 'password', 'remember_token', |
81 | 81 | ]; |
82 | 82 | |
83 | - public function games(){ |
|
83 | + public function games() { |
|
84 | 84 | return $this->belongsToMany('App\Models\Game'); |
85 | 85 | } |
86 | 86 | |
87 | - public function news(){ |
|
87 | + public function news() { |
|
88 | 88 | return $this->belongsToMany('App\Models\News'); |
89 | 89 | } |
90 | 90 | |
91 | - public function settings(){ |
|
91 | + public function settings() { |
|
92 | 92 | return $this->hasOne('App\Models\UserSetting', 'user_id', 'id'); |
93 | 93 | } |
94 | 94 | |
95 | - public function logo(){ |
|
95 | + public function logo() { |
|
96 | 96 | return $this->hasMany('App\Models\Logo', 'user_id', 'id'); |
97 | 97 | } |
98 | 98 | |
99 | - public function logovote(){ |
|
99 | + public function logovote() { |
|
100 | 100 | return $this->belongsToMany('App\Models\LogoVote'); |
101 | 101 | } |
102 | 102 | |
103 | - public function userobyx(){ |
|
103 | + public function userobyx() { |
|
104 | 104 | return $this->hasMany('App\Models\UserObyx', 'user_id', 'id'); |
105 | 105 | } |
106 | 106 | |
107 | - public function userlists(){ |
|
107 | + public function userlists() { |
|
108 | 108 | return $this->hasMany('App\Models\UserList', 'user_id', 'id'); |
109 | 109 | } |
110 | 110 | } |
@@ -40,11 +40,11 @@ |
||
40 | 40 | |
41 | 41 | protected $guarded = []; |
42 | 42 | |
43 | - public function event(){ |
|
43 | + public function event() { |
|
44 | 44 | return $this->hasOne('App\Models\Event', 'id', 'event_id'); |
45 | 45 | } |
46 | 46 | |
47 | - public function user(){ |
|
47 | + public function user() { |
|
48 | 48 | return $this->hasOne('App\Models\Event', 'id', 'user_id'); |
49 | 49 | } |
50 | 50 |
@@ -42,11 +42,11 @@ |
||
42 | 42 | |
43 | 43 | protected $guarded = []; |
44 | 44 | |
45 | - public function user(){ |
|
45 | + public function user() { |
|
46 | 46 | return $this->hasOne('App\Models\User'); |
47 | 47 | } |
48 | 48 | |
49 | - public function logo(){ |
|
49 | + public function logo() { |
|
50 | 50 | return $this->hasOne('App\Models\Logo'); |
51 | 51 | } |
52 | 52 | } |
53 | 53 | \ No newline at end of file |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | protected $guarded = []; |
44 | 44 | |
45 | - public function event(){ |
|
45 | + public function event() { |
|
46 | 46 | return $this->hasOne('App\Models\Event', 'id', 'event_id'); |
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file |
@@ -34,11 +34,11 @@ |
||
34 | 34 | |
35 | 35 | protected $guarded = []; |
36 | 36 | |
37 | - public function game(){ |
|
37 | + public function game() { |
|
38 | 38 | return $this->hasOne('App\Models\Game', 'id', 'game_id')->with('maker', 'developers', 'gamefiles'); |
39 | 39 | } |
40 | 40 | |
41 | - public function user(){ |
|
41 | + public function user() { |
|
42 | 42 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
43 | 43 | } |
44 | 44 |
@@ -43,11 +43,11 @@ |
||
43 | 43 | |
44 | 44 | protected $guarded = []; |
45 | 45 | |
46 | - public function threads(){ |
|
46 | + public function threads() { |
|
47 | 47 | return $this->hasMany('App\Models\BoardThread', 'cat_id', 'id'); |
48 | 48 | } |
49 | 49 | |
50 | - public function last_user(){ |
|
50 | + public function last_user() { |
|
51 | 51 | return $this->hasOne('App\Models\User', 'id', 'last_user_id'); |
52 | 52 | } |
53 | 53 | } |
54 | 54 | \ No newline at end of file |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | protected $guarded = []; |
42 | 42 | |
43 | - public function user(){ |
|
43 | + public function user() { |
|
44 | 44 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
45 | 45 | } |
46 | 46 | } |
47 | 47 | \ No newline at end of file |