I am using Laravel 4 and blade templates, and running into an issue when I try and extend a template.
In my layout I have
@yield('content')
and in my page I have
@section('content')
Welcome {{ $name }}
@stop
which works fine, I've created another page very similar to my first, and just want to change override the admin content section. The other sections in the template are fine.
so I extend my page, and do
@section('content')
Hello!
@stop
I get an undefined notice with the $name variable.
I tried
@section('content')
Hello!
@overwrite
and same deal, I get the notice error. I checked my controller and it IS using the correct template. I am not calling @parent so I don't understand, how can I overwrite a section in a template with out notice errors?