wip
This commit is contained in:
1 parent
0eacfb71a9
commit
f4a71472be
2 files changed
+17
-9
No files matched your search
+1
-1
@@ -13,7 +13,7 @@ trait NovaVisaMasterPaymentOrderItemAuth
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return bool
|
||||
*/
|
||||
public function authorizedToView(Request $request)
|
||||
public function authorizedToView(Request $request): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
+16
-8
@@ -85,6 +85,22 @@ public static function singularLabel(): string
|
||||
return __('Payment');
|
||||
}
|
||||
|
||||
/**
|
||||
* The click action to use when clicking on the resource in the table.
|
||||
*
|
||||
* Can be one of: 'detail' (default), 'edit', 'select', 'preview', or 'ignore'.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $clickAction = 'preview';
|
||||
|
||||
public function fieldsForPreview(): array
|
||||
{
|
||||
return [
|
||||
ID::make(),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*
|
||||
@@ -114,12 +130,4 @@ public function fields(NovaRequest $request): array
|
||||
Boolean::make('paid'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Actions
|
||||
*/
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user