This commit is contained in:
spencerrlongg 2023-11-15 16:55:21 -06:00
parent 9b31ae3146
commit af144a5184

View file

@ -20,7 +20,7 @@ class PersonalAccessTokens extends Component
public function rules(): array public function rules(): array
{ {
return [ return [
'name' => 'required', 'name' => 'required|string|max:255',
'scopes' => 'nullable|array', 'scopes' => 'nullable|array',
]; ];
} }
@ -37,9 +37,4 @@ class PersonalAccessTokens extends Component
//seems like it does, test more //seems like it does, test more
Auth::user()->tokens()->find($tokenId)->delete(); Auth::user()->tokens()->find($tokenId)->delete();
} }
public function getTokensProperty(): array
{
return Auth::user()->tokens;
}
} }