On this page
Compiler
abstract class Compiler (View source)
Properties
protected Filesystem | $files | The filesystem instance. |
|
protected string | $cachePath | The cache path for the compiled views. |
|
protected string | $basePath | The base path that should be removed from paths before hashing. |
|
protected bool | $shouldCache | Determines if compiled views should be cached. |
|
protected string | $compiledExtension | The compiled view file extension. |
Methods
void | __construct(Filesystem $files, string $cachePath, string $basePath = '', bool $shouldCache = true, string $compiledExtension = 'php') 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. |
|
void | ensureCompiledDirectoryExists(string $path) Create the compiled file directory if necessary. |
Details
void __construct(Filesystem $files, string $cachePath, string $basePath = '', bool $shouldCache = true, string $compiledExtension = 'php')
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/View/Compilers/Compiler.html