Skip to content

ResourceController

  • Full name: \Qubus\Routing\Interfaces\ResourceController

Methods

index

Display a listing of the resource.

public index(): mixed

show

Display the specified resource.

public show(int|string $id): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$id int|string

store

Store a newly created resource in storage.

public store(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\RequestInterface

create

Show the form for creating a new resource.

public create(): \Psr\Http\Message\ResponseInterface

edit

Show the form/view for editing the specified resource.

public edit(int|string $id): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$id int|string

update

Update the specified resource in storage.

public update(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\RequestInterface

destroy

Remove the specified resource from storage.

public destroy(int|string $id): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$id int|string


Automatically generated on 2025-10-13