- return $hasApiPermission && hasAppAccess();
- }
-
- /**
- * Provide a standard API unauthorised response.
- */
- protected function unauthorisedResponse(string $message, int $code)
- {
- return response()->json([
- 'error' => [
- 'code' => $code,
- 'message' => $message,
- ],
- ], $code);