@@ -37,11 +37,11 @@ |
||
| 37 | 37 | |
| 38 | 38 | protected $guarded = []; |
| 39 | 39 | |
| 40 | - public function type(){ |
|
| 40 | + public function type() { |
|
| 41 | 41 | return $this->hasOne('App\Models\UserCreditType', 'id', 'credit_type_id'); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function user(){ |
|
| 44 | + public function user() { |
|
| 45 | 45 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -58,15 +58,15 @@ |
||
| 58 | 58 | |
| 59 | 59 | protected $guarded = []; |
| 60 | 60 | |
| 61 | - public function content(){ |
|
| 61 | + public function content() { |
|
| 62 | 62 | return $this->morphTo(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function user(){ |
|
| 65 | + public function user() { |
|
| 66 | 66 | return $this->belongsTo('App\Models\User'); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - public function game(){ |
|
| 69 | + public function game() { |
|
| 70 | 70 | return $this->hasOne('App\Models\Game', 'id', 'content_id')->with('user', 'maker', 'gamefiles', 'language'); |
| 71 | 71 | } |
| 72 | 72 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected $guarded = []; |
| 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 | |
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected $guarded = []; |
| 40 | 40 | |
| 41 | - public function developer(){ |
|
| 41 | + public function developer() { |
|
| 42 | 42 | return $this->hasOne('App\Models\Developer', 'id', 'developer_id')->with('user'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function game(){ |
|
| 45 | + public function game() { |
|
| 46 | 46 | return $this->hasOne('App\Models\Game', 'id', 'game_id')->with('comments', 'maker', 'gamefiles', 'cdcs'); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | |
| 35 | 35 | protected $guarded = []; |
| 36 | 36 | |
| 37 | - public function user(){ |
|
| 37 | + public function user() { |
|
| 38 | 38 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function event(){ |
|
| 41 | + public function event() { |
|
| 42 | 42 | return $this->hasOne('App\Models\Event', 'id', 'user_id'); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | protected $guarded = []; |
| 41 | 41 | |
| 42 | - public function tag(){ |
|
| 42 | + public function tag() { |
|
| 43 | 43 | return $this->hasOne('App\Models\Tag', 'id', 'tag_id'); |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | \ No newline at end of file |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | protected $guarded = []; |
| 32 | 32 | |
| 33 | - public function tag_relations(){ |
|
| 33 | + public function tag_relations() { |
|
| 34 | 34 | return $this->hasMany('App\Models\TagRelation', 'tag_id', 'id'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -34,11 +34,11 @@ |
||
| 34 | 34 | |
| 35 | 35 | protected $guarded = []; |
| 36 | 36 | |
| 37 | - public function user(){ |
|
| 37 | + public function user() { |
|
| 38 | 38 | return $this->belongsTo('App\Models\User', 'user_id', 'id'); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function obyx(){ |
|
| 41 | + public function obyx() { |
|
| 42 | 42 | return $this->hasOne('App\Models\Obyx', 'id', 'obyx_id'); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -45,11 +45,11 @@ |
||
| 45 | 45 | |
| 46 | 46 | protected $guarded = []; |
| 47 | 47 | |
| 48 | - public function awardpage(){ |
|
| 48 | + public function awardpage() { |
|
| 49 | 49 | return $this->hasOne('App\Models\AwardPage', 'id', 'award_page_id'); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - public function user(){ |
|
| 52 | + public function user() { |
|
| 53 | 53 | return $this->hasOne('App\Models\User', 'id', 'user_id'); |
| 54 | 54 | } |
| 55 | 55 | |