Basic
Basic
Basic controller class
This controller is a basic controller for directly handling requests. Developers can extend this class to create their own flexible controllers for use in modern AJAX enabled websites that don't require HTML views.
How it works is a request is passed to the controller and the controller is responsible for processing it, creating a new response object and return that object back to the application for processing.
This controller type is typically used for handling AJAX requests as responses to these requests do not require rendering any views. This allows AJAX requests to be processed quickly without the overhead of rendering a view that will never be displayed.
Properties
name
protected string $name = 'basic'Methods
__construct
public __construct(Request $request): voidParameters
| Parameter | Type | Description |
|---|---|---|
$request | Request |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000