pass $myTitle to blade as a variable in your controller from the column in the database.
In your layouts/app.blade.php
<title>@yield('page_title', 'Default Page Title')</title>
in your other blade files
@isset($myTitle )
@section('page_title', 'A string if needed ' . $myTitle . '')
@endisset
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community