mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
cleanup
This commit is contained in:
parent
9b31ae3146
commit
af144a5184
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue