fix: subscriptions

This commit is contained in:
Andras Bacsai
2023-08-30 18:23:55 +02:00
parent 5b6667c461
commit 923af88336
20 changed files with 147 additions and 69 deletions

View File

@@ -32,7 +32,7 @@ class User extends Authenticatable implements SendsEmail
$team = [
'name' => $user->name . "'s Team",
'personal_team' => true,
'boarding' => true
'show_boarding' => true
];
if ($user->id === 0) {
$team['id'] = 0;
@@ -94,7 +94,7 @@ class User extends Authenticatable implements SendsEmail
public function currentTeam()
{
return session('currentTeam');
return Team::find(session('currentTeam')->id);
}
public function otherTeams()