如何在我的laravel5.7网站上添加标题,描述,关键字等Metas [关闭]

问题描述:

I want different title, description and keywords on each and every product page and category page in my laravel website.

How can I make my website seo friendly to do this?

I am using laravel 5.7.

我想在laravel网站的每个产品页面和类别页面上使用不同的标题,描述和关键字。 p>

如何让我的网站seo友好地执行此操作? p>

我正在使用laravel 5.7。 p> div>

In default.blade.php or master balde file you can create yield() and in blade file add section()

Example : app.blade.php

 @yield('meta')

in View blade file somefile.blade.php

@section('meta')
    ....
    <meta property="title" content="Place your data here">
    <meta property="keywords" content="Place your data here">
    ....
@endsection