Skip to content

Two args @section directive not working as intended #15

@diegoibanezr

Description

@diegoibanezr

Hi,

First of all: Thanks for this awesome and clean library, it has helped me a lot but today I've been struggling with my "main.slice.php" where I have <title>@yield('title', 'Placeholder')</title>, it works fine, but when I extend it is where the problem starts.

When I do
@extends('main')
@section('title', 'Hello')
It throws an error on eval'd code "Message: syntax error, unexpected '?'"

But it works fine if I add @endsection
@extends('main')
@section('title', 'Hello')
@endsection

Is that intended?
I'm working on HMVC btw

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions