- Full name:
\App\Shared\Http\FormState - This class is marked as final and can't be subclassed
- This class is a Final class
Constants
| Constant | Visibility | Type | Value |
|---|---|---|---|
OLD_INPUT_KEY |
private | '_devflow_old_input' | |
FORM_ERRORS_KEY |
private | '_devflow_form_errors' |
Properties
oldInput
errors
session
Methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$session |
\Qubus\Http\Session\PhpSession |
flashInput
public flashInput(array<string,mixed> $input, array<int,string> $except = ['password', 'password_confirmation', '_token', 'csrf_token']): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$input |
array |
|
$except |
array |
Throws:
flashErrors
Parameters:
| Parameter | Type | Description |
|---|---|---|
$errors |
array |
Throws:
old
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string | |
$default |
mixed |
hasOld
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string |
oldInput
error
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string |
hasError
Parameters:
| Parameter | Type | Description |
|---|---|---|
$key |
string |
errors
clear
arrayGet
Parameters:
| Parameter | Type | Description |
|---|---|---|
$data |
array |
|
$key |
string | |
$default |
mixed |