Contents

Backend\Classes\ServiceWorkerController

Overview

ServiceWorkerController serves the backend service worker script through PHP so the response can carry the Service-Worker-Allowed header, widening the worker's scope to the entire backend.

Extends
  • Illuminate\Routing\Controller

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $middleware - The middleware registered on the controller. (defined in Illuminate\Routing\Controller)

Public Methods

public index()

public index(): void

index serves the worker script

Show inherited public methods

Inherited Public Methods

  • __call() - Handle calls to missing methods on the controller. (defined in Illuminate\Routing\Controller)
  • callAction() - Execute an action on the controller. (defined in Illuminate\Routing\Controller)
  • getMiddleware() - Get the middleware assigned to the controller. (defined in Illuminate\Routing\Controller)
  • middleware() - Register middleware on the controller. (defined in Illuminate\Routing\Controller)