Assets class abstract final

Versioned URLs of the files served by ApplicationBuilder.withStatic (Laravel's asset() and Vite::asset()).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

registry → StaticAssets
The static directories of the current container.
no setter

Static Methods

url(String path) → String
/assets/neo.css?v=1a2b3c4d5e6f: the URL of path with the version that lets browsers cache it for a year. A Vite source (resources/js/app.js) gives its built file.
vite(String entry) → String
The URL of the file Vite built from entry (Vite::asset()); throws when the manifest does not list it.