<head>
<title>dynamic title here - {{ config('app.name') }}</title>
</head>
if you try this, please let me know.
<head>
<title>dynamic title here - {{ config('app.name') }}</title>
</head>
if you try this, please let me know.
Copyright © 2021 Jogjafile Inc.
I preferred using JavaScript with Blade Components
document.title = 'My Title'
Implemented with Alpine JS
Blade Component (.../components/page-title.blade.php)
so you can call the
page-title
component anywhere in your blade flies like thisThere could be easier methods of doing it the JavaScript way, but this is what I could think of. Hope it helps
The PHP way could be to pass the
$title
as a prop to the layout, For Exampleguest-layout.blade.php
now looks like