我如何在我的 laravel5.7 网站中添加元,如标题、描述、关键字



我希望在我的Laravel网站的每个产品页面和类别页面上都有不同的标题,描述和关键字。

如何使我的网站 SEO 友好来做到这一点?

我正在使用 laravel 5.7。

default.blade .php 或主秃头文件中,您可以创建yield(),并在刀片文件中添加section()

例:应用刀片.php

 @yield('meta')

在"查看"边栏选项卡文件某个文件.刀片中.php

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

最新更新