Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mahmoudtrageh's avatar

this code give me a close parenthesis in the blade

@if(config('layout.subheader.display')) @if(array_key_exists(config('layout.subheader.layout'), config('layout.subheader.layouts'))) @include('layout.partials.subheader.'.config('layout.subheader.layout')) @else @include('layout.partials.subheader.'.array_key_first(config('layout.subheader.layouts'))) @endif @endif

this code give me a close parenthesis in the blade .. why ?

0 likes
2 replies
Sergiu17's avatar

Your code looks OK, maybe there's a parenthesis inside of a partial?

1 like
mahmoudtrageh's avatar

tnx so much, I found parenthesis inside of subheader file.

Please or to participate in this conversation.