Laravel Dynamic Page Title In Navbar-brand

I have where I have my <html> and <body> tags and also the <nav>.
In the <body> I yield content for every page, so they basically extend this app.blade.php.
All basic Laravel stuff so now I have this:

 <div class="navbar-header">
    <!-- Collapsed Hamburger -->
    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#spark-navbar-collapse">
        <span class="sr-only">Toggle Navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    <!-- Branding Image -->
    <a class="navbar-brand" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="/">
        *Dynamic page title*
// ...

And I would like to use this <a class="navbar-brand"> to display my pagetitle. So this means it has to change for each template that is loaded (with @yield('content')) in this 'parent.blade.php'.

How would I do this using Laravel 5.2?

Many thanks



If this is your master page title below

    <title>App Name - @yield('title')</title>
        This is the master sidebar.

    <div class="container">

then your page title can be changed in your blade page like below


@section('title', 'Page Title')


<p>This is appended to the master sidebar.</p>

<p>This is my body content.</p>

More information can be found here Laravel Docs