Compiler
abstract class Compiler (View source)
Properties
| protected Filesystem | $files | The Filesystem instance. |
|
| protected string | $cachePath | Get the cache path for the compiled views. |
Methods
void
string
getCompiledPath(string $path)
Get the path to the compiled version of a view.
bool
isExpired(string $path)
Determine if the view at the given path is expired.
void
ensureCompiledDirectoryExists(string $path)
Create the compiled file directory if necessary.
Details
void
__construct(Filesystem $files, string $cachePath)
Create a new compiler instance.
string
getCompiledPath(string $path)
Get the path to the compiled version of a view.
bool
isExpired(string $path)
Determine if the view at the given path is expired.
protected void
ensureCompiledDirectoryExists(string $path)
Create the compiled file directory if necessary.
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.