add types

This commit is contained in:
2024-05-06 17:13:38 +05:00
parent 88b934bda1
commit e5907fe3a9
46 changed files with 465 additions and 184 deletions

View File

@@ -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
{