Changeset View
Changeset View
Standalone View
Standalone View
src/app/WalletSetting.php
Show All 19 Lines | class WalletSetting extends Model | ||||
/** | /** | ||||
* The wallet to which this setting belongs. | * The wallet to which this setting belongs. | ||||
* | * | ||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||||
*/ | */ | ||||
public function wallet() | public function wallet() | ||||
{ | { | ||||
return $this->belongsTo( | return $this->belongsTo('\App\Wallet', 'wallet_id', 'id'); | ||||
'\App\Wallet', | |||||
'wallet_id', /* local */ | |||||
'id' /* remote */ | |||||
); | |||||
} | } | ||||
} | } |