Add page title
This commit is contained in:
parent
38fb1c36c9
commit
ab8092ee97
|
@ -9,6 +9,7 @@ class Layout extends Component
|
|||
|
||||
public function __construct(public string $pageClass = '', public string $title = '')
|
||||
{
|
||||
session()->put('title', $title);
|
||||
}
|
||||
|
||||
public function userName(): string
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||||
|
||||
<title>{{ $title ?? 'Page Title' }}</title>
|
||||
<title>{{ session()->get('title') }} | {{ config('app.name') }}</title>
|
||||
<meta name="socketport" content="{{env('SOCKET_PORT')}}" />
|
||||
<meta name="adrema_base_url" content="/">
|
||||
@if(auth()->id())
|
||||
|
|
Loading…
Reference in New Issue