Changeset View
Changeset View
Standalone View
Standalone View
src/app/UserSetting.php
Show All 15 Lines | |||||
{ | { | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'key', 'value' | 'key', 'value' | ||||
]; | ]; | ||||
/** | /** | ||||
* The user to which this setting belongs. | * The user to which this setting belongs. | ||||
* | * | ||||
* @return \App\User | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||||
*/ | */ | ||||
public function user() | public function user() | ||||
{ | { | ||||
return $this->belongsTo('\App\User', 'user_id' /* local */, 'id' /* remote */); | return $this->belongsTo( | ||||
'\App\User', | |||||
'user_id', /* local */ | |||||
'id' /* remote */ | |||||
); | |||||
} | } | ||||
} | } |