simple way to generate laravel HTML Meta Tags.
You can install the package via composer:
composer require atm-code/meta-tags
\MetaTag
::title('site title')
->desc('site desc')
->type()->url(url('/'))
->image(asset('images/logo.png'))
->color('#F5F5F4')
this will generate the following HTML:
<title>site title</title>
<meta name="title" content="site title">
<meta property="og:title" content="site title">
<meta property="twitter:title" content="site title">
<meta name="description" content="site desc"><meta property="og:description" content="site desc">
<meta property="twitter:description" content="site desc">
<meta name="og:type" content="website">
<meta name="og:url" content="https://site.test">
<meta name="og:image" content="https://site.test/images/logo.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://site.test/images/logo.png">
<meta name="theme-color" content="#F5F5F4">
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.