laravel / ideas

Issues board used for Laravel internals discussions.
939 stars 28 forks source link

Helper blade directives #2466

Open ebihimself opened 3 years ago

ebihimself commented 3 years ago

Use helper directives instead of writing them inside my blade directly. for example instead of using:

{{ Illuminate\Support\Str::ascii('û') }}

use something like :

@ascii('û')

mfn commented 3 years ago

You can do so already, see https://laravel.com/docs/8.x/blade#extending-blade

ebihimself commented 3 years ago

You can do so already, see https://laravel.com/docs/8.x/blade#extending-blade

Yeah, I've seen that before. But I meant a set of plugins that come with the package that has implemented the directives fluently.