From af144a5184f849dc9a3b81de78190dc632e2f215 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Wed, 15 Nov 2023 16:55:21 -0600 Subject: [PATCH] cleanup --- app/Http/Livewire/PersonalAccessTokens.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/Http/Livewire/PersonalAccessTokens.php b/app/Http/Livewire/PersonalAccessTokens.php index 478a0726d0..9526130055 100644 --- a/app/Http/Livewire/PersonalAccessTokens.php +++ b/app/Http/Livewire/PersonalAccessTokens.php @@ -20,7 +20,7 @@ class PersonalAccessTokens extends Component public function rules(): array { return [ - 'name' => 'required', + 'name' => 'required|string|max:255', 'scopes' => 'nullable|array', ]; } @@ -37,9 +37,4 @@ class PersonalAccessTokens extends Component //seems like it does, test more Auth::user()->tokens()->find($tokenId)->delete(); } - - public function getTokensProperty(): array - { - return Auth::user()->tokens; - } }