jeudi 17 décembre 2015

Laravel - @section to @Yield troubles blade

I have my master .php file setup here: views/layouts/app.blade.php and my child here views/tasks.blade.php

In tasks.blade.php I wrote the following code:

@extends('layouts.app')
@section('content')
[Some html-code to output like div's]
@endsection

In app.blade.php I have a basic html setup with html-tags, bootstrap cdn, and jquery. In the body-tags I wrote:

@yield('content')

In routes.php the default route when localhost loads the map is set to 'tasks'. However, I do not get the tasks.blade.php displayed within app.blade.php

Any solutions please?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire