E
E
Emil Rakhmatullin2019-08-28 13:14:59
Laravel
Emil Rakhmatullin, 2019-08-28 13:14:59

Why doesn't the template engine work?

Playing with Larvel. And a question arose.
I have this structure:

  • feed control
    • public.blade.php
    • mess.blade.php

  • feed-control.blade.php

And in the file feed-control.blade.phpI include 2 files depending on the route:
@if( Route::currentRouteName() == 'mess' )
  @include('feed-control.mess')
@endif

@if( Route::currentRouteName() == 'public' )
  @include('feed-control.public')
@endif

For some reason the blade is not working on messthe page. That is, for example {{ $feed->title }}, it is displayed this way, or it is @csrfalso displayed this way, like text.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question