class CloudManager (View source)

Traits

Properties

static protected array $macros

The registered string macros.

from  Macroable

Methods

static void
macro(string $name, object|callable $macro)

Register a custom macro.

static void
mixin(object $mixin, bool $replace = true)

Mix another object into the class.

static bool
hasMacro(string $name)

Checks if macro is registered.

static void
flushMacros()

Flush the existing macros.

static mixed
__callStatic(string $method, array $parameters)

Dynamically handle calls to the class.

mixed
__call(string $method, array $parameters)

Dynamically handle calls to the class.

__construct(Container $container)

Create a new Laravel Cloud manager instance.

bool
hosted()

Determine if the application is currently hosted on Laravel Cloud.

bool
usesManagedQueues()

Determine if the application is using Laravel Cloud managed queues.

queue()

Get the Laravel Cloud managed queue connection.

bool
isManagedQueue(string $queue)

Determine if the given queue is managed by Laravel Cloud.

Details

static void macro(string $name, object|callable $macro)

Register a custom macro.

Parameters

string $name
object|callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

Mix another object into the class.

Parameters

object $mixin
bool $replace

Return Value

void

Exceptions

ReflectionException

static bool hasMacro(string $name)

Checks if macro is registered.

Parameters

string $name

Return Value

bool

static void flushMacros()

Flush the existing macros.

Return Value

void

static mixed __callStatic(string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

mixed __call(string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

__construct(Container $container)

Create a new Laravel Cloud manager instance.

Parameters

Container $container

bool hosted()

Determine if the application is currently hosted on Laravel Cloud.

Return Value

bool

bool usesManagedQueues()

Determine if the application is using Laravel Cloud managed queues.

Return Value

bool

Queue queue()

Get the Laravel Cloud managed queue connection.

Return Value

Queue

Exceptions

RuntimeException

bool isManagedQueue(string $queue)

Determine if the given queue is managed by Laravel Cloud.

Parameters

string $queue

Return Value

bool