PHP code example of area17 / laravel-auto-head-tags
1. Go to this page and download the library: Download area17/laravel-auto-head-tags library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
area17 / laravel-auto-head-tags example snippets
return view('welcome', [
'seo' => [
'title' => 'Your page title',
'description' => 'The meta description for the page',
'urls' => [
'canonical' => 'https://site.com/the-article-slug'
],
],
'twitter' => [
'handle' => '@opticalcortex'
],
'image' => [
'url' => 'https://site.com/image.jpg'
]
]);
bash
php artisan vendor:publish --provider="A17\LaravelAutoHeadTags\ServiceProvider"