Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Feb 29, 2024
2 parents f044aa7 + d8cf1d3 commit 73fdc25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/FilamentJetstreamPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function register(Panel $panel): void
MenuItem::make()
->label('Profile')
->icon('heroicon-o-user-circle')
->url(static fn() => auth()->user()?->hasVerifiedEmail()
->url(static fn () => auth()->user()?->hasVerifiedEmail()
? url(EditProfile::getUrl())
: url($panel->getPath())),
]);
Expand All @@ -47,7 +47,7 @@ public function register(Panel $panel): void
MenuItem::make()
->label('API Tokens')
->icon('heroicon-o-key')
->url(static fn() => auth()->user()?->hasVerifiedEmail()
->url(static fn () => auth()->user()?->hasVerifiedEmail()
? url(ApiTokens::getUrl())
: url($panel->getPath())),
]);
Expand All @@ -62,7 +62,7 @@ public function register(Panel $panel): void
MenuItem::make()
->label('Team Settings')
->icon('heroicon-o-cog-6-tooth')
->url(static fn() => Filament::getTenant()
->url(static fn () => Filament::getTenant()
? url(EditTeam::getUrl())
: url($panel->getPath())),
]);
Expand Down
1 change: 0 additions & 1 deletion src/FilamentJetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public function packageBooted(): void
Testable::mixin(new TestsFilamentJetstream());
}


/**
* @return array<class-string>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Listeners/CreatePersonalTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function handle(Registered $event): void
if (Features::hasTeamFeatures()) {
$team = Team::forceCreate([

Check failure on line 27 in src/Listeners/CreatePersonalTeam.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to static method forceCreate() on an unknown class App\Models\Team.
'user_id' => $user->id,

Check failure on line 28 in src/Listeners/CreatePersonalTeam.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property Illuminate\Contracts\Auth\Authenticatable::$id.
'name' => explode(' ', $user->name, 2)[0]."'s Team",
'name' => explode(' ', $user->name, 2)[0] . "'s Team",

Check failure on line 29 in src/Listeners/CreatePersonalTeam.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property Illuminate\Contracts\Auth\Authenticatable::$name.
'personal_team' => true,
]);

Expand Down

0 comments on commit 73fdc25

Please sign in to comment.