add types
This commit is contained in:
@@ -28,7 +28,7 @@ class Permission extends Resource
|
||||
/**
|
||||
* The columns that should be searched.
|
||||
*
|
||||
* @var array
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public static $search = [
|
||||
'id', 'name',
|
||||
@@ -52,6 +52,8 @@ class Permission extends Resource
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
@@ -73,6 +75,8 @@ class Permission extends Resource
|
||||
|
||||
/**
|
||||
* Get the cards available for the request.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function cards(NovaRequest $request): array
|
||||
{
|
||||
@@ -81,6 +85,8 @@ class Permission extends Resource
|
||||
|
||||
/**
|
||||
* Get the filters available for the resource.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function filters(NovaRequest $request): array
|
||||
{
|
||||
@@ -89,6 +95,8 @@ class Permission extends Resource
|
||||
|
||||
/**
|
||||
* Get the lenses available for the resource.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function lenses(NovaRequest $request): array
|
||||
{
|
||||
@@ -97,6 +105,8 @@ class Permission extends Resource
|
||||
|
||||
/**
|
||||
* Get the actions available for the resource.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user