MediaPreset
class MediaPreset implements JsonSerializable
Traits
Constants
ORIGINAL |
|
Properties
protected array | $timestamps | from Timestamps | |
protected array | $attributes | ||
array | $modified | from Accessors |
Methods
__construct($preset = [])
No description
static void
static MediaPreset|null
find(string $name)
No description
static MediaPreset
findOrFail(string $name)
No description
getModeAttribute($mode = null)
No description
getResolutionsAttribute($resolutions)
No description
setMaxWidthAttribute($maxWidth)
No description
array
getBreakpointsAttribute(array $values = [])
No description
getFillAttribute($fill = null)
No description
getSizeAttribute($size = null)
No description
getWidthAttribute()
No description
getHeightAttribute()
No description
getMaxWidthAttribute($maxWidth = 0)
No description
jsonSerialize()
No description
Details
in
Timestamps at line 18
serializeTimestamp($value)
in
Accessors at line 30
array
toArray()
Get the raw attributes
in
Accessors at line 39
mixed
__get(string $property)
in
Accessors at line 67
__set(string $property, mixed $value)
in
Accessors at line 97
bool
__isset(string $property)
in
Accessors at line 105
__unset(string $key)
in
Accessors at line 116
bool
offsetExists(string $property)
in
Accessors at line 127
mixed
offsetGet(string $property)
in
Accessors at line 137
mixed
offsetSet(string $property, mixed $value)
in
Accessors at line 146
void
offsetUnset(string $key)
in
Accessors at line 154
string
__toString()
at line 42
__construct($preset = [])
at line 54
static void
register(string $name, MediaPreset|array $preset)
Registers a preset