Skip to content

Commit d8c22cf

Browse files
committed
Custom title for footer pages
1 parent 4e97bae commit d8c22cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

resources/views/pages.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
@include('layouts.lang')
33
<head>
44
<meta charset="utf-8">
5+
@php
6+
$title = \Route::currentRouteName();
7+
$title = str_replace('pages', '', $title);
8+
$title = env('TITLE_FOOTER_'.strtoupper($title));
9+
@endphp
10+
<title>{{$title}} - {{env('APP_NAME')}}</title>
511

612
@include('layouts.analytics')
713

0 commit comments

Comments
 (0)