Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Provide support for @includeFirst Blade directive #152

Closed
bazzik opened this issue Sep 25, 2017 · 1 comment
Closed

Provide support for @includeFirst Blade directive #152

bazzik opened this issue Sep 25, 2017 · 1 comment

Comments

@bazzik
Copy link

bazzik commented Sep 25, 2017

Replaces:

@if(view()->exists('custom-template'))
    @include('custom-template')
@else
    @include('default-template')
@endif

With:

@includeFirst(['custom-template', 'default-template'])

laravel/framework#21172

The support required: completion assistance & Ctrl+Click navigation for views (similarly to how it's done for @include directive in 1st parameter).

@Haehnchen
Copy link
Owner

done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants