B
B
batraider2016-08-02 20:10:05
Laravel
batraider, 2016-08-02 20:10:05

Laravel, why is blade not working?

Hello. Why doesn't blade work?
In view I have:
welcome.blade.php

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<h1>сайт</h1>
<div class="container">
@yield('content')
</div>
</body>
</html>

and post.blade.php
@extends('welcome')

@section('content')
<p>Это - содержимое страницы.</p>
@stop

In the route I display view('welcom') all the rules, but for some reason post.blade.php is not included, what's wrong?
Laravel 5.2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2016-08-02
@DevartNigga

In the route I output view('welcom')

in this cant.
Why should it output post if you are rendering welcome?

R
Ramallah, 2016-08-02
@ramallah

not @stop but @endsection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question