*/ protected $fillable = [ 'asset_id', 'user_id', 'wearing' ]; /** * Gets the asset that's owned. */ public function asset() { return $this->belongsTo(Asset::class, 'asset_id'); } /** * Gets the user that owns the asset. */ public function user() { return $this->belongsTo(User::class, 'user_id'); } }