Slicing into Blade
summary
Walks through exact Blade internals: a tiny standalone PHP view function that shows rendering, Blade's compile_string step and use of PHP's token_get_all, the pre-compilers (Livewire registers one), and how directives compile (custom vs core) including common pitfalls with eval and argument parsing. Shows compiled view files being required and returned via evaluatePath, explains view factory → render flow, and gives concrete patterns for writing and debugging custom directives.
AI-written summary · about
chapters (7)
- 0:00Start
- 11:42Get Contents Method
- 16:37Compile Extensions
- 17:59Compile Statements Method
- 21:03Test Directive
- 24:00Undefined Variable Value Error
- 25:46Error Directive








