class Bind (View source)

Properties

class-string $concrete

The concrete class to bind to.

non-empty-array<int, string> $environments

The environments the binding should apply for.

Methods

__construct(string $concrete, string|array|UnitEnum $environments = ['*'])

Create a new attribute instance.

Details

__construct(string $concrete, string|array|UnitEnum $environments = ['*'])

Create a new attribute instance.

Parameters

string $concrete
string|array|UnitEnum $environments

Exceptions

InvalidArgumentException

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.