R
R
root092016-04-14 13:18:04
Laravel
root09, 2016-04-14 13:18:04

Data output on all pages?

There is a site structure:
default.blade.php:
c60f5f6bd95f62b26fc1711864f961d8.png
And the main page for example main.blade.php

@extends('default')

@section('content')
Content
@stop

On each page, under the header, there should be a "last comments" block, how to display it correctly?
What would not send it in each controller

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2016-04-14
@root09

That way. Laravel view composer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question