PHP code example of gustocoder / tyfoon-seo
1. Go to this page and download the library: Download gustocoder/tyfoon-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/ */
gustocoder / tyfoon-seo example snippets
@if(isset($globalSeoMetadata))
{!! $globalSeoMetadata !!}
@endif
@if(isset($pageSeoMetadata))
{!! $pageSeoMetadata !!}
@else
<title>@yield('title', config('app.name'))</title>
@endif
<h1>{!! $bodySeoData['h1_text'] !!}</h1>
<h2>{!! $bodySeoData['h2_text'] !!}</h2>
<p>{!! $bodySeoData['page_content'] !!}</p>
@if(isset($bodySeoData))
<h1>{!! $bodySeoData['h1_text'] !!}</h1>
<h2>{!! $bodySeoData['h2_text'] !!}</h2>
<p>{!! $bodySeoData['page_content'] !!}</p>
@endif
@extends('layouts.main.app')
@section('title', 'myWebApp - products')
...
return [
'cacheable' => false,
...
];
bash
php artisan vendor:publish --tag=tyfoon-seo-migrations
bash
php artisan migrate
bash
php artisan migrate:refresh --path=/database/migrations/2024_05_14_091500_create_tyfoon_seo_global_table.php
php artisan migrate:refresh --path=/database/migrations/2024_05_14_091510_create_tyfoon_seo_table.php
bash
php artisan vendor:publish --provider="Gustocoder\TyfoonSeo\TyfoonSeoServiceProvider" --tag=config