PHP code example of larament / seokit
1. Go to this page and download the library: Download larament/seokit 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/ */
larament / seokit example snippets
use Larament\SeoKit\Facades\SeoKit;
public function show(Post $post)
{
SeoKit::title($post->title)
->description($post->excerpt)
->image($post->featured_image)
->canonical(route('posts.show', $post));
return view('posts.show', compact('post'));
}
bash
php artisan seokit:install
bash
php artisan vendor:publish --tag="seokit-config"
php artisan vendor:publish --tag="seokit-migrations"
php artisan migrate
bash
composer analyse