class Response

Class Response.

Properties

bool $status
Exception $exception
array $toastrMethods
protected $plugin
protected array $then
protected string $html

Methods

$this
toastr()

No description

$this
swal()

No description

getPlugin()

No description

$this
success(string $message = '')

No description

$this
info(string $message = '')

No description

$this
warning(string $message = '')

No description

$this
error(string $message = '')

No description

$this
show(string $type, string $title = '')

No description

$this
redirect(string $url)

Send a redirect response.

open(string $url)

Send a open new window response.

$this
location(string $location)

Send a location redirect response.

$this
download(string $url)

Send a download response.

$this
refresh()

Send a refresh response.

$this
html(string $html = '')

Send a html response.

static mixed
withException(Exception $exception)

No description

JsonResponse
send()

No description

$this
__call(string $method, array $arguments)

No description

$this
topCenter()

No description

$this
topLeft()

No description

$this
topRight()

No description

$this
bottomLeft()

No description

$this
bottomCenter()

No description

$this
bottomRight()

No description

$this
topFullWidth()

No description

$this
bottomFullWidth()

No description

$this
timeout(mixed $timeout)

No description

Details

at line 59
$this toastr()

No description

Return Value

$this

at line 71
$this swal()

No description

Return Value

$this

at line 83
SweatAlert2 getPlugin()

No description

Return Value

SweatAlert2

at line 93
$this success(string $message = '')

No description

Parameters

string $message

Return Value

$this

at line 103
$this info(string $message = '')

No description

Parameters

string $message

Return Value

$this

at line 113
$this warning(string $message = '')

No description

Parameters

string $message

Return Value

$this

at line 123
$this error(string $message = '')

No description

Parameters

string $message

Return Value

$this

at line 134
protected $this show(string $type, string $title = '')

No description

Parameters

string $type
string $title

Return Value

$this

at line 148
$this redirect(string $url)

Send a redirect response.

Parameters

string $url

Return Value

$this

at line 160
open(string $url)

Send a open new window response.

Parameters

string $url

at line 174
$this location(string $location)

Send a location redirect response.

Parameters

string $location

Return Value

$this

at line 188
$this download(string $url)

Send a download response.

Parameters

string $url

Return Value

$this

at line 200
$this refresh()

Send a refresh response.

Return Value

$this

at line 214
$this html(string $html = '')

Send a html response.

Parameters

string $html

Return Value

$this

at line 226
static mixed withException(Exception $exception)

No description

Parameters

Exception $exception

Return Value

mixed

at line 245
JsonResponse send()

No description

Return Value

JsonResponse

at line 265
$this __call(string $method, array $arguments)

No description

Parameters

string $method
array $arguments

Return Value

$this

at line 20
$this topCenter()

No description

Return Value

$this

at line 20
$this topLeft()

No description

Return Value

$this

at line 20
$this topRight()

No description

Return Value

$this

at line 20
$this bottomLeft()

No description

Return Value

$this

at line 20
$this bottomCenter()

No description

Return Value

$this

at line 20
$this bottomRight()

No description

Return Value

$this

at line 20
$this topFullWidth()

No description

Return Value

$this

at line 20
$this bottomFullWidth()

No description

Return Value

$this

at line 20
$this timeout(mixed $timeout)

No description

Parameters

mixed $timeout

Return Value

$this