On this page
BladeCompiler
class BladeCompiler extends Compiler implements CompilerInterface (View source)
Traits
Properties
protected Filesystem | $files | The filesystem instance. |
from Compiler |
protected string | $cachePath | The cache path for the compiled views. |
from Compiler |
protected string | $basePath | The base path that should be removed from paths before hashing. |
from Compiler |
protected bool | $shouldCache | Determines if compiled views should be cached. |
from Compiler |
protected string | $compiledExtension | The compiled view file extension. |
from Compiler |
static protected array | $componentHashStack | The component name hash stack. |
from CompilesComponents |
protected bool | $firstCaseInSwitch | Identifier for the first case in the switch statement. |
from CompilesConditionals |
protected array | $echoHandlers | Custom rendering callbacks for stringable objects. |
from CompilesEchos |
protected string | $lastFragment | The last compiled fragment. |
from CompilesFragments |
protected string | $lastSection | The name of the last section that was started. |
from CompilesLayouts |
protected int | $forElseCounter | Counter to keep track of nested forelse statements. |
from CompilesLoops |
protected array | $extensions | All of the registered extensions. |
|
protected array | $customDirectives | All custom "directive" handlers. |
|
protected array | $conditions | All custom "condition" handlers. |
|
protected array | $precompilers | All of the registered precompilers. |
|
protected string | $path | The file currently being compiled. |
|
protected string[] | $compilers | All of the available compiler functions. |
|
protected string[] | $rawTags | Array of opening and closing tags for raw echos. |
|
protected string[] | $contentTags | Array of opening and closing tags for regular echos. |
|
protected string[] | $escapedTags | Array of opening and closing tags for escaped echos. |
|
protected string | $echoFormat | The "regular" / legacy echo string format. |
|
protected array | $footer | Array of footer lines to be added to the template. |
|
protected array | $rawBlocks | Array to temporarily store the raw blocks found in the template. |
|
protected array | $anonymousComponentPaths | The array of anonymous component paths to search for components in. |
|
protected array | $anonymousComponentNamespaces | The array of anonymous component namespaces to autoload from. |
|
protected array | $classComponentAliases | The array of class component aliases and their class names. |
|
protected array | $classComponentNamespaces | The array of class component namespaces to autoload from. |
|
protected bool | $compilesComponentTags | Indicates if component tags should be compiled. |
|
protected | $template |
Methods
void | __construct($template) Create a new compiler instance. |
|
string | getCompiledPath(string $path) Get the path to the compiled version of a view. |
from Compiler |
bool | isExpired(string $path) Determine if the view at the given path is expired. |
from Compiler |
void | ensureCompiledDirectoryExists(string $path) Create the compiled file directory if necessary. |
from Compiler |
string | compileCan(string $expression) Compile the can statements into valid PHP. |
from CompilesAuthorizations |
string | compileCannot(string $expression) Compile the cannot statements into valid PHP. |
from CompilesAuthorizations |
string | compileCanany(string $expression) Compile the canany statements into valid PHP. |
from CompilesAuthorizations |
string | compileElsecan(string $expression) Compile the else-can statements into valid PHP. |
from CompilesAuthorizations |
string | compileElsecannot(string $expression) Compile the else-cannot statements into valid PHP. |
from CompilesAuthorizations |
string | compileElsecanany(string $expression) Compile the else-canany statements into valid PHP. |
from CompilesAuthorizations |
string | compileEndcan() Compile the end-can statements into valid PHP. |
from CompilesAuthorizations |
string | compileEndcannot() Compile the end-cannot statements into valid PHP. |
from CompilesAuthorizations |
string | compileEndcanany() Compile the end-canany statements into valid PHP. |
from CompilesAuthorizations |
string | compileClass(string $expression) Compile the conditional class statement into valid PHP. |
from CompilesClasses |
string | compileComments(string $value) Compile Blade comments into an empty string. |
from CompilesComments |
string | compileComponent(string $expression) Compile the component statements into valid PHP. |
from CompilesComponents |
static string | newComponentHash(string $component) Get a new component hash for a component name. |
from CompilesComponents |
static string | compileClassComponentOpening(string $component, string $alias, string $data, string $hash) Compile a class component opening. |
from CompilesComponents |
string | compileEndComponent() Compile the end-component statements into valid PHP. |
from CompilesComponents |
string | compileEndComponentClass() Compile the end-component statements into valid PHP. |
from CompilesComponents |
string | compileSlot(string $expression) Compile the slot statements into valid PHP. |
from CompilesComponents |
string | compileEndSlot() Compile the end-slot statements into valid PHP. |
from CompilesComponents |
string | compileComponentFirst(string $expression) Compile the component-first statements into valid PHP. |
from CompilesComponents |
string | compileEndComponentFirst() Compile the end-component-first statements into valid PHP. |
from CompilesComponents |
string | compileProps(string $expression) Compile the prop statement into valid PHP. |
from CompilesComponents |
string | compileAware(string $expression) Compile the aware statement into valid PHP. |
from CompilesComponents |
static mixed | sanitizeComponentAttribute(mixed $value) Sanitize the given component attribute value. |
from CompilesComponents |
string | compileAuth(string|null $guard = null) Compile the if-auth statements into valid PHP. |
from CompilesConditionals |
string | compileElseAuth(string|null $guard = null) Compile the else-auth statements into valid PHP. |
from CompilesConditionals |
string | compileEndAuth() Compile the end-auth statements into valid PHP. |
from CompilesConditionals |
string | compileEnv(string $environments) Compile the env statements into valid PHP. |
from CompilesConditionals |
string | compileEndEnv() Compile the end-env statements into valid PHP. |
from CompilesConditionals |
string | compileProduction() Compile the production statements into valid PHP. |
from CompilesConditionals |
string | compileEndProduction() Compile the end-production statements into valid PHP. |
from CompilesConditionals |
string | compileGuest(string|null $guard = null) Compile the if-guest statements into valid PHP. |
from CompilesConditionals |
string | compileElseGuest(string|null $guard = null) Compile the else-guest statements into valid PHP. |
from CompilesConditionals |
string | compileEndGuest() Compile the end-guest statements into valid PHP. |
from CompilesConditionals |
string | compileHasSection(string $expression) Compile the has-section statements into valid PHP. |
from CompilesConditionals |
string | compileSectionMissing(string $expression) Compile the section-missing statements into valid PHP. |
from CompilesConditionals |
string | compileIf(string $expression) Compile the if statements into valid PHP. |
from CompilesConditionals |
string | compileUnless(string $expression) Compile the unless statements into valid PHP. |
from CompilesConditionals |
string | compileElseif(string $expression) Compile the else-if statements into valid PHP. |
from CompilesConditionals |
string | compileElse() Compile the else statements into valid PHP. |
from CompilesConditionals |
string | compileEndif() Compile the end-if statements into valid PHP. |
from CompilesConditionals |
string | compileEndunless() Compile the end-unless statements into valid PHP. |
from CompilesConditionals |
string | compileIsset(string $expression) Compile the if-isset statements into valid PHP. |
from CompilesConditionals |
string | compileEndIsset() Compile the end-isset statements into valid PHP. |
from CompilesConditionals |
string | compileSwitch(string $expression) Compile the switch statements into valid PHP. |
from CompilesConditionals |
string | compileCase(string $expression) Compile the case statements into valid PHP. |
from CompilesConditionals |
string | compileDefault() Compile the default statements in switch case into valid PHP. |
from CompilesConditionals |
string | compileEndSwitch() Compile the end switch statements into valid PHP. |
from CompilesConditionals |
string | compileOnce(string|null $id = null) Compile a once block into valid PHP. |
from CompilesConditionals |
string | compileEndOnce() Compile an end-once block into valid PHP. |
from CompilesConditionals |
string | compileSelected(string $condition) Compile a selected block into valid PHP. |
from CompilesConditionals |
string | compileChecked(string $condition) Compile a checked block into valid PHP. |
from CompilesConditionals |
string | compileDisabled(string $condition) Compile a disabled block into valid PHP. |
from CompilesConditionals |
string | compileRequired(string $condition) Compile a required block into valid PHP. |
from CompilesConditionals |
string | compileReadonly(string $condition) Compile a readonly block into valid PHP. |
from CompilesConditionals |
string | compilePushIf(string $expression) Compile the push statements into valid PHP. |
from CompilesConditionals |
string | compileEndPushIf() Compile the end-push statements into valid PHP. |
from CompilesConditionals |
void | stringable(string|callable $class, callable|null $handler = null) Add a handler to be executed before echoing a given class. |
from CompilesEchos |
string | compileEchos(string $value) Compile Blade echos into valid PHP. |
from CompilesEchos |
array | getEchoMethods() Get the echo methods in the proper order for compilation. |
from CompilesEchos |
string | compileRawEchos(string $value) Compile the "raw" echo statements. |
from CompilesEchos |
string | compileRegularEchos(string $value) Compile the "regular" echo statements. |
from CompilesEchos |
string | compileEscapedEchos(string $value) Compile the escaped echo statements. |
from CompilesEchos |
string | addBladeCompilerVariable(string $result) Add an instance of the blade echo handler to the start of the compiled string. |
from CompilesEchos |
string | wrapInEchoHandler(string $value) Wrap the echoable value in an echo handler if applicable. |
from CompilesEchos |
string | applyEchoHandler(string $value) Apply the echo handler for the value if it exists. |
from CompilesEchos |
string | compileError(string $expression) Compile the error statements into valid PHP. |
from CompilesErrors |
string | compileEnderror(string $expression) Compile the enderror statements into valid PHP. |
from CompilesErrors |
string | compileFragment(string $expression) Compile the fragment statements into valid PHP. |
from CompilesFragments |
string | compileEndfragment() Compile the end-fragment statements into valid PHP. |
from CompilesFragments |
string | compileCsrf() Compile the CSRF statements into valid PHP. |
from CompilesHelpers |
string | compileDd(string $arguments) Compile the "dd" statements into valid PHP. |
from CompilesHelpers |
string | compileDump(string $arguments) Compile the "dump" statements into valid PHP. |
from CompilesHelpers |
string | compileMethod(string $method) Compile the method statements into valid PHP. |
from CompilesHelpers |
string | compileVite(string|null $arguments) Compile the "vite" statements into valid PHP. |
from CompilesHelpers |
string | compileViteReactRefresh() Compile the "viteReactRefresh" statements into valid PHP. |
from CompilesHelpers |
string | compileEach(string $expression) Compile the each statements into valid PHP. |
from CompilesIncludes |
string | compileInclude(string $expression) Compile the include statements into valid PHP. |
from CompilesIncludes |
string | compileIncludeIf(string $expression) Compile the include-if statements into valid PHP. |
from CompilesIncludes |
string | compileIncludeWhen(string $expression) Compile the include-when statements into valid PHP. |
from CompilesIncludes |
string | compileIncludeUnless(string $expression) Compile the include-unless statements into valid PHP. |
from CompilesIncludes |
string | compileIncludeFirst(string $expression) Compile the include-first statements into valid PHP. |
from CompilesIncludes |
string | compileInject(string $expression) Compile the inject statements into valid PHP. |
from CompilesInjections |
string | compileJson(string $expression) Compile the JSON statement into valid PHP. |
from CompilesJson |
string | compileJs(string $expression) Compile the "@js" directive into valid PHP. |
from CompilesJs |
string | compileExtends(string $expression) Compile the extends statements into valid PHP. |
from CompilesLayouts |
string | compileExtendsFirst(string $expression) Compile the extends-first statements into valid PHP. |
from CompilesLayouts |
string | compileSection(string $expression) Compile the section statements into valid PHP. |
from CompilesLayouts |
string | compileParent() Replace the @parent directive to a placeholder. |
from CompilesLayouts |
string | compileYield(string $expression) Compile the yield statements into valid PHP. |
from CompilesLayouts |
string | compileShow() Compile the show statements into valid PHP. |
from CompilesLayouts |
string | compileAppend() Compile the append statements into valid PHP. |
from CompilesLayouts |
string | compileOverwrite() Compile the overwrite statements into valid PHP. |
from CompilesLayouts |
string | compileStop() Compile the stop statements into valid PHP. |
from CompilesLayouts |
string | compileEndsection() Compile the end-section statements into valid PHP. |
from CompilesLayouts |
string | compileForelse(string $expression) Compile the for-else statements into valid PHP. |
from CompilesLoops |
string | compileEmpty(string $expression) Compile the for-else-empty and empty statements into valid PHP. |
from CompilesLoops |
string | compileEndforelse() Compile the end-for-else statements into valid PHP. |
from CompilesLoops |
string | compileEndEmpty() Compile the end-empty statements into valid PHP. |
from CompilesLoops |
string | compileFor(string $expression) Compile the for statements into valid PHP. |
from CompilesLoops |
string | compileForeach(string $expression) Compile the for-each statements into valid PHP. |
from CompilesLoops |
string | compileBreak(string $expression) Compile the break statements into valid PHP. |
from CompilesLoops |
string | compileContinue(string $expression) Compile the continue statements into valid PHP. |
from CompilesLoops |
string | compileEndfor() Compile the end-for statements into valid PHP. |
from CompilesLoops |
string | compileEndforeach() Compile the end-for-each statements into valid PHP. |
from CompilesLoops |
string | compileWhile(string $expression) Compile the while statements into valid PHP. |
from CompilesLoops |
string | compileEndwhile() Compile the end-while statements into valid PHP. |
from CompilesLoops |
string | compilePhp(string $expression) Compile the raw PHP statements into valid PHP. |
from CompilesRawPhp |
string | compileUnset(string $expression) Compile the unset statements into valid PHP. |
from CompilesRawPhp |
string | compileStack(string $expression) Compile the stack statements into the content. |
from CompilesStacks |
string | compilePush(string $expression) Compile the push statements into valid PHP. |
from CompilesStacks |
string | compilePushOnce(string $expression) Compile the push-once statements into valid PHP. |
from CompilesStacks |
string | compileEndpush() Compile the end-push statements into valid PHP. |
from CompilesStacks |
string | compileEndpushOnce() Compile the end-push-once statements into valid PHP. |
from CompilesStacks |
string | compilePrepend(string $expression) Compile the prepend statements into valid PHP. |
from CompilesStacks |
string | compilePrependOnce(string $expression) Compile the prepend-once statements into valid PHP. |
from CompilesStacks |
string | compileEndprepend() Compile the end-prepend statements into valid PHP. |
from CompilesStacks |
string | compileEndprependOnce() Compile the end-prepend-once statements into valid PHP. |
from CompilesStacks |
string | compileStyle(string $expression) Compile the conditional style statement into valid PHP. |
from CompilesStyles |
string | compileLang(string|null $expression) Compile the lang statements into valid PHP. |
from CompilesTranslations |
string | compileEndlang() Compile the end-lang statements into valid PHP. |
from CompilesTranslations |
string | compileChoice(string $expression) Compile the choice statements into valid PHP. |
from CompilesTranslations |
string | firstClosureParameterType(Closure $closure) Get the class name of the first parameter of the given Closure. |
from ReflectsClosures |
array | firstClosureParameterTypes(Closure $closure) Get the class names of the first parameter of the given Closure, including union types. |
from ReflectsClosures |
array | closureParameterTypes(Closure $closure) Get the class names / types of the parameters of the given Closure. |
from ReflectsClosures |
void | compile(string $path = null) Compile the view at the given path. |
|
string | appendFilePath(string $contents) Append the file path to the compiled string. |
|
Collection | getOpenAndClosingPhpTokens(string $contents) Get the open and closing PHP tag tokens from the given string. |
|
string | getPath() Get the path currently being compiled. |
|
void | setPath(string $path) Set the path currently being compiled. |
|
string | compileString(string $value) Compile the given Blade template contents. |
|
render() No description |
Details
void __construct($template)
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.
protected string compileCan(string $expression)
Compile the can statements into valid PHP.
protected string compileCannot(string $expression)
Compile the cannot statements into valid PHP.
protected string compileCanany(string $expression)
Compile the canany statements into valid PHP.
protected string compileElsecan(string $expression)
Compile the else-can statements into valid PHP.
protected string compileElsecannot(string $expression)
Compile the else-cannot statements into valid PHP.
protected string compileElsecanany(string $expression)
Compile the else-canany statements into valid PHP.
protected string compileEndcan()
Compile the end-can statements into valid PHP.
protected string compileEndcannot()
Compile the end-cannot statements into valid PHP.
protected string compileEndcanany()
Compile the end-canany statements into valid PHP.
protected string compileClass(string $expression)
Compile the conditional class statement into valid PHP.
protected string compileComments(string $value)
Compile Blade comments into an empty string.
protected string compileComponent(string $expression)
Compile the component statements into valid PHP.
static string newComponentHash(string $component)
Get a new component hash for a component name.
static string compileClassComponentOpening(string $component, string $alias, string $data, string $hash)
Compile a class component opening.
protected string compileEndComponent()
Compile the end-component statements into valid PHP.
string compileEndComponentClass()
Compile the end-component statements into valid PHP.
protected string compileSlot(string $expression)
Compile the slot statements into valid PHP.
protected string compileEndSlot()
Compile the end-slot statements into valid PHP.
protected string compileComponentFirst(string $expression)
Compile the component-first statements into valid PHP.
protected string compileEndComponentFirst()
Compile the end-component-first statements into valid PHP.
protected string compileProps(string $expression)
Compile the prop statement into valid PHP.
protected string compileAware(string $expression)
Compile the aware statement into valid PHP.
static mixed sanitizeComponentAttribute(mixed $value)
Sanitize the given component attribute value.
protected string compileAuth(string|null $guard = null)
Compile the if-auth statements into valid PHP.
protected string compileElseAuth(string|null $guard = null)
Compile the else-auth statements into valid PHP.
protected string compileEndAuth()
Compile the end-auth statements into valid PHP.
protected string compileEnv(string $environments)
Compile the env statements into valid PHP.
protected string compileEndEnv()
Compile the end-env statements into valid PHP.
protected string compileProduction()
Compile the production statements into valid PHP.
protected string compileEndProduction()
Compile the end-production statements into valid PHP.
protected string compileGuest(string|null $guard = null)
Compile the if-guest statements into valid PHP.
protected string compileElseGuest(string|null $guard = null)
Compile the else-guest statements into valid PHP.
protected string compileEndGuest()
Compile the end-guest statements into valid PHP.
protected string compileHasSection(string $expression)
Compile the has-section statements into valid PHP.
protected string compileSectionMissing(string $expression)
Compile the section-missing statements into valid PHP.
protected string compileIf(string $expression)
Compile the if statements into valid PHP.
protected string compileUnless(string $expression)
Compile the unless statements into valid PHP.
protected string compileElseif(string $expression)
Compile the else-if statements into valid PHP.
protected string compileElse()
Compile the else statements into valid PHP.
protected string compileEndif()
Compile the end-if statements into valid PHP.
protected string compileEndunless()
Compile the end-unless statements into valid PHP.
protected string compileIsset(string $expression)
Compile the if-isset statements into valid PHP.
protected string compileEndIsset()
Compile the end-isset statements into valid PHP.
protected string compileSwitch(string $expression)
Compile the switch statements into valid PHP.
protected string compileCase(string $expression)
Compile the case statements into valid PHP.
protected string compileDefault()
Compile the default statements in switch case into valid PHP.
protected string compileEndSwitch()
Compile the end switch statements into valid PHP.
protected string compileOnce(string|null $id = null)
Compile a once block into valid PHP.
string compileEndOnce()
Compile an end-once block into valid PHP.
protected string compileSelected(string $condition)
Compile a selected block into valid PHP.
protected string compileChecked(string $condition)
Compile a checked block into valid PHP.
protected string compileDisabled(string $condition)
Compile a disabled block into valid PHP.
protected string compileRequired(string $condition)
Compile a required block into valid PHP.
protected string compileReadonly(string $condition)
Compile a readonly block into valid PHP.
protected string compilePushIf(string $expression)
Compile the push statements into valid PHP.
protected string compileEndPushIf()
Compile the end-push statements into valid PHP.
void stringable(string|callable $class, callable|null $handler = null)
Add a handler to be executed before echoing a given class.
string compileEchos(string $value)
Compile Blade echos into valid PHP.
protected array getEchoMethods()
Get the echo methods in the proper order for compilation.
protected string compileRawEchos(string $value)
Compile the "raw" echo statements.
protected string compileRegularEchos(string $value)
Compile the "regular" echo statements.
protected string compileEscapedEchos(string $value)
Compile the escaped echo statements.
protected string addBladeCompilerVariable(string $result)
Add an instance of the blade echo handler to the start of the compiled string.
protected string wrapInEchoHandler(string $value)
Wrap the echoable value in an echo handler if applicable.
string applyEchoHandler(string $value)
Apply the echo handler for the value if it exists.
protected string compileError(string $expression)
Compile the error statements into valid PHP.
protected string compileEnderror(string $expression)
Compile the enderror statements into valid PHP.
protected string compileFragment(string $expression)
Compile the fragment statements into valid PHP.
protected string compileEndfragment()
Compile the end-fragment statements into valid PHP.
protected string compileCsrf()
Compile the CSRF statements into valid PHP.
protected string compileDd(string $arguments)
Compile the "dd" statements into valid PHP.
protected string compileDump(string $arguments)
Compile the "dump" statements into valid PHP.
protected string compileMethod(string $method)
Compile the method statements into valid PHP.
protected string compileVite(string|null $arguments)
Compile the "vite" statements into valid PHP.
protected string compileViteReactRefresh()
Compile the "viteReactRefresh" statements into valid PHP.
protected string compileEach(string $expression)
Compile the each statements into valid PHP.
protected string compileInclude(string $expression)
Compile the include statements into valid PHP.
protected string compileIncludeIf(string $expression)
Compile the include-if statements into valid PHP.
protected string compileIncludeWhen(string $expression)
Compile the include-when statements into valid PHP.
protected string compileIncludeUnless(string $expression)
Compile the include-unless statements into valid PHP.
protected string compileIncludeFirst(string $expression)
Compile the include-first statements into valid PHP.
protected string compileInject(string $expression)
Compile the inject statements into valid PHP.
protected string compileJson(string $expression)
Compile the JSON statement into valid PHP.
protected string compileJs(string $expression)
Compile the "@js" directive into valid PHP.
protected string compileExtends(string $expression)
Compile the extends statements into valid PHP.
protected string compileExtendsFirst(string $expression)
Compile the extends-first statements into valid PHP.
protected string compileSection(string $expression)
Compile the section statements into valid PHP.
protected string compileParent()
Replace the @parent directive to a placeholder.
protected string compileYield(string $expression)
Compile the yield statements into valid PHP.
protected string compileShow()
Compile the show statements into valid PHP.
protected string compileAppend()
Compile the append statements into valid PHP.
protected string compileOverwrite()
Compile the overwrite statements into valid PHP.
protected string compileStop()
Compile the stop statements into valid PHP.
protected string compileEndsection()
Compile the end-section statements into valid PHP.
protected string compileForelse(string $expression)
Compile the for-else statements into valid PHP.
protected string compileEmpty(string $expression)
Compile the for-else-empty and empty statements into valid PHP.
protected string compileEndforelse()
Compile the end-for-else statements into valid PHP.
protected string compileEndEmpty()
Compile the end-empty statements into valid PHP.
protected string compileFor(string $expression)
Compile the for statements into valid PHP.
protected string compileForeach(string $expression)
Compile the for-each statements into valid PHP.
protected string compileBreak(string $expression)
Compile the break statements into valid PHP.
protected string compileContinue(string $expression)
Compile the continue statements into valid PHP.
protected string compileEndfor()
Compile the end-for statements into valid PHP.
protected string compileEndforeach()
Compile the end-for-each statements into valid PHP.
protected string compileWhile(string $expression)
Compile the while statements into valid PHP.
protected string compileEndwhile()
Compile the end-while statements into valid PHP.
protected string compilePhp(string $expression)
Compile the raw PHP statements into valid PHP.
protected string compileUnset(string $expression)
Compile the unset statements into valid PHP.
protected string compileStack(string $expression)
Compile the stack statements into the content.
protected string compilePush(string $expression)
Compile the push statements into valid PHP.
protected string compilePushOnce(string $expression)
Compile the push-once statements into valid PHP.
protected string compileEndpush()
Compile the end-push statements into valid PHP.
protected string compileEndpushOnce()
Compile the end-push-once statements into valid PHP.
protected string compilePrepend(string $expression)
Compile the prepend statements into valid PHP.
protected string compilePrependOnce(string $expression)
Compile the prepend-once statements into valid PHP.
protected string compileEndprepend()
Compile the end-prepend statements into valid PHP.
protected string compileEndprependOnce()
Compile the end-prepend-once statements into valid PHP.
protected string compileStyle(string $expression)
Compile the conditional style statement into valid PHP.
protected string compileLang(string|null $expression)
Compile the lang statements into valid PHP.
protected string compileEndlang()
Compile the end-lang statements into valid PHP.
protected string compileChoice(string $expression)
Compile the choice statements into valid PHP.
protected string firstClosureParameterType(Closure $closure)
Get the class name of the first parameter of the given Closure.
protected array firstClosureParameterTypes(Closure $closure)
Get the class names of the first parameter of the given Closure, including union types.
protected array closureParameterTypes(Closure $closure)
Get the class names / types of the parameters of the given Closure.
void compile(string $path = null)
Compile the view at the given path.
protected string appendFilePath(string $contents)
Append the file path to the compiled string.
protected Collection getOpenAndClosingPhpTokens(string $contents)
Get the open and closing PHP tag tokens from the given string.
string getPath()
Get the path currently being compiled.
void setPath(string $path)
Set the path currently being compiled.
string compileString(string $value)
Compile the given Blade template contents.
render()
No description
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/View/Compilers/BladeCompiler.html