Skip to content

Commit fc04226

Browse files
Merge pull request #91 from jeffersongoncalves/fix-check-sactum-install
fix(profile): handle missing Sanctum class in token visibility logic
2 parents f2ba1e0 + 6df6fd3 commit fc04226

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FilamentEditProfilePlugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ public function getShouldShowBrowserSessionsForm(): bool
248248

249249
public function getShouldShowSanctumTokens(): bool
250250
{
251+
if (! class_exists('Laravel\Sanctum\Sanctum')) {
252+
$this->sanctumTokens = false;
253+
}
254+
251255
return $this->evaluate($this->sanctumTokens);
252256
}
253257

0 commit comments

Comments
 (0)