class Illuminate / Routing / PendingSingletonResourceRegistration
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

PendingSingletonResourceRegistration

Uses

Properties

protected

$registrar ResourceRegistrar

The resource registrar.

Default: null
protected

$name string

The resource name.

Default: null
protected

$controller string

The resource controller.

Default: null
protected

$options array

The resource options.

Default: []
protected

$registered bool

The resource's registration status.

Default: false

Methods

public

__construct ( ResourceRegistrar $registrar , $name , $controller , array $options ) : void

Create a new pending singleton resource registration instance.

Parameters

public

only ( $methods ) : PendingSingletonResourceRegistration

Set the methods the controller should apply to.

Parameters

  • $methods array|string|mixed
public

except ( $methods ) : PendingSingletonResourceRegistration

Set the methods the controller should exclude.

Parameters

  • $methods array|string|mixed
public

creatable ( ) : $this

Indicate that the resource should have creation and storage routes.

public

destroyable ( ) : $this

Indicate that the resource should have a deletion route.

public

names ( $names ) : PendingSingletonResourceRegistration

Set the route names for controller actions.

Parameters

  • $names array|string
public

name ( $method , $name ) : PendingSingletonResourceRegistration

Set the route name for a controller action.

Parameters

  • $method string
  • $name string
public

parameters ( $parameters ) : PendingSingletonResourceRegistration

Override the route parameter names.

Parameters

  • $parameters array|string
public

parameter ( $previous , $new ) : PendingSingletonResourceRegistration

Override a route parameter's name.

Parameters

  • $previous string
  • $new string
public

middleware ( $middleware ) : PendingSingletonResourceRegistration

Add middleware to the resource routes.

Parameters

  • $middleware mixed
public

withoutMiddleware ( $middleware ) : $this|array

Specify middleware that should be removed from the resource routes.

Parameters

  • $middleware array|string
public

where ( $wheres ) : PendingSingletonResourceRegistration

Add "where" constraints to the resource routes.

Parameters

  • $wheres mixed
public

register ( ) : RouteCollection

Register the singleton resource route.

public

__destruct ( ) : void

Handle the object's destruction.