class MediaType extends Model

Volumes can contain either images or videos as media type.

Traits

Some models have fixed, "constant" instances. An example is the Role model, which may have e.g. the roles "admin" and "user". These are always the same and do not change.

HasFactory

Constants

INSTANCES

The constant instances of this model.

Properties

bool $timestamps

Don't maintain timestamps for this model.

Methods

static mixed
__callStatic(string $key, mixed $arguments)

Get one of the instances of this model that are defined in the INSTANCES constant array.

static MediaType
image()

No description

static int
imageId()

No description

static MediaType
video()

No description

static int
videoId()

No description

Details

static mixed __callStatic(string $key, mixed $arguments)

Get one of the instances of this model that are defined in the INSTANCES constant array.

Parameters

string $key

Can be he instance name like "myName" or to get the instance ID "myNameId".

mixed $arguments

Return Value

mixed

at line 17
static MediaType image()

No description

Return Value

MediaType

at line 17
static int imageId()

No description

Return Value

int

at line 17
static MediaType video()

No description

Return Value

MediaType

at line 17
static int videoId()

No description

Return Value

int