PHP code example of dovaldev / filament-simple-seo
1. Go to this page and download the library: Download dovaldev/filament-simple-seo 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/ */
dovaldev / filament-simple-seo example snippets
return [
];
use Dovaldev\FilamentSimpleSeo\Models\Seo;
/**
* Get the SEO data for the user.
*/
public function seo() {
return $this->morphOne(Seo::class, 'seoable');
}
bash
php artisan vendor:publish --tag="filament-simple-seo-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-simple-seo-config"
bash
php artisan vendor:publish --tag="filament-simple-seo-views"