feat:adds ability to share portfolios

also includes basic permissions and authorization
This commit is contained in:
hackerESQ
2024-10-21 22:23:20 -05:00
parent 63c4c1c228
commit f93bfad3ce
18 changed files with 375 additions and 41 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class User extends Authenticatable implements MustVerifyEmail
public function portfolios()
{
return $this->belongsToMany(Portfolio::class)->withPivot('owner');
return $this->belongsToMany(Portfolio::class)->withPivot(['owner', 'full_access', 'invite_accepted_at']);
}
public function daily_changes()