laravel 5.4 how to make page title with dynamic

后端 未结 3 1855
一生所求
一生所求 2021-02-14 05:02

ihave a route to get artists initial letter.

this is my route

Route::get(\'/artists/{letter}\', \'HomeController@showArtist\')->where(\'letter\', \'[         


        
3条回答
  •  时光说笑
    2021-02-14 06:10

    First step : Add this code inside header Tag.

      Website Name ( optional ) - @yield('title')
    

    Second Step : Add below code inside dynamic Page.

    @section('title',  $data['metaTitle'])
    

提交回复
热议问题