S
S
shane892015-10-05 20:26:06
PHP
shane89, 2015-10-05 20:26:06

Blade template not showing in laravel 5?

Goodnight! I am building a small frame, but I hit a dead end. The layout does not want to be displayed.
Here is the main page which is in main/main.blade.php

<!DOCTYPE html>
<html>
    <head>
        <title>{{ $title }}</title>
        <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
        <script src="./media/js/jquery.js"></script>
        <script src="./media/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="./media/css/bootstrap.min.css">
        <link rel="stylesheet" href="./media/css/style.css">
    </head>
    <body>
        @yield('home')
    </body>
</html>

Here is the template that I want to connect to the main page, it is located in pages/home.blade.php
@extends('main.main')
@section('home')
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <form>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Имя</label>
                            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Имя">
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Email</label>
                            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Сообщение</label>
                            <textarea class="form-control" rows="3"></textarea>
                        </div>
                        <p>
                            <button type="button" class="btn btn-primary btn-lg">Отправить</button>
                        </p>
                    </form>
                </div>
            </div>
        </div>
@stop

But does not want to be displayed, what could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cha-cha, 2015-10-05
@shane89

When rendering, what template are you specifying?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question