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
Hi,
I'm trying to include data with my templates. Both of these render nothing for
{{ $title }}:So I look at this:
blade.php#L332-L337
and wonder about
->with(get_defined_vars()).Doesn't this just rewrite my
$titleto null, since no value is supplied?view.php#L452-L463