wip
including working export button
This commit is contained in:
@@ -35,8 +35,6 @@ class Portfolio extends Model
|
||||
|
||||
protected $with = ['users', 'transactions'];
|
||||
|
||||
protected $appends = ['owner_id'];
|
||||
|
||||
public function users()
|
||||
{
|
||||
return $this->belongsToMany(User::class)->withPivot('owner');
|
||||
@@ -69,11 +67,6 @@ class Portfolio extends Model
|
||||
return $this->hasMany(DailyChange::class);
|
||||
}
|
||||
|
||||
public function scopeMyPortfolios()
|
||||
{
|
||||
return $this->whereRelation('users', 'id', auth()->user()->id);
|
||||
}
|
||||
|
||||
public function scopeWithoutWishlists()
|
||||
{
|
||||
return $this->where(['wishlist' => false]);
|
||||
|
||||
Reference in New Issue
Block a user