mattstauffer / Torch

Examples of using each Illuminate component in non-Laravel applications
MIT License
1.85k stars 210 forks source link

Blade: custom if support and no hardcoding of facades accessor #185

Closed lepidosteus closed 3 years ago

lepidosteus commented 3 years ago

Like the title says, two commits in this

First to use an anonymous class to get around accessor name being protected, so we don't need to hardcode it anymore

Second to get custom if statement fully working, they work with directives and facade calls behind the scene so on top of the aliasing we need to give the facade our container as root.

mattstauffer commented 3 years ago

Thanks @lepidosteus!