Skip to content

Bound data / view variables #29

@AppSynergy

Description

@AppSynergy

Hi,

I'm trying to include data with my templates. Both of these render nothing for {{ $title }}:

@include('partials/sighting-top', array('title' => 'My Title'))       // usual way
@include('partials/sighting-top')->with('title','My Title')            // should work to?

So I look at this:
blade.php#L332-L337

and wonder about ->with(get_defined_vars()).

Doesn't this just rewrite my $title to null, since no value is supplied?

view.php#L452-L463

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