S
S
Sergey Zavialov2019-03-21 13:30:54
Laravel
Sergey Zavialov, 2019-03-21 13:30:54

How to display page title?

I don't see page titles
Tried in different ways

->with('title', 'Hello World2');
->withTitle('Hello World');
$data  = array('title'=>'Hello World','title2'=>'Hello world 3');
return view('default.contact',$data);

Does not work. Some phrase is displayed, which is not clear where it is entered. I don't remember where this phrase is located and I can't find it.
Even so, I introduced it into the main layout, which is inherited by all other pages
<title>Главная страница</title>
. And even here the Main page is not displayed.
What could be the problem.
In the main layout, the page title is set to display like this.
<title>{{ $title }}</title>
It just should work, but it doesn't!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
javanub, 2019-03-30
@javanub


Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question