What is the naming convention for the cached PHP files?

Edit: In the Illuminate Blade compiler there is this function that generates the path for a compiled view file:

Note that acorn 3.1.0 (current version) uses illuminate/view 9.47,
hence I linked to the function for 9.47.

In later releases of illuminate/view (as 10.7.1) the code for generating the file path actually has changed (https://github.com/illuminate/view/blob/81c2d4e35774714ccd53f3b8fba2afe7ee093609/Compilers/Compiler.php#L84)!
So you may want to call that function from the Illuminate\View\Compilers\Compiler class, and not just hard-copy its logic, to future-proof your code.

1 Like