PHP code example of aistglobal / seomanager

1. Go to this page and download the library: Download aistglobal/seomanager 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/ */

    

aistglobal / seomanager example snippets


// file START ommited
    'providers' => [
        // other providers ommited
        Seo\Manager\Providers\ManagerServiceProvider::class,
    ],
// file END ommited

// file START ommited
    'aliases' => [
        // other Facades ommited
       
             'SeoManager'=>Seo\Manager\Facades\SeoManager::class,
             
                 ],
// file END ommited

use Seo\Manager\Facades\SeoManager;

class HomeController extends Controller
{
 public function index(Request $request)
    {
       SeoManager::seoManager($request,$keywords, $title, $description, $ogType, $image = null, $locale = null, $locales = null, $canonical = null);

       return view('home');
    }
}
shell
php artisan vendor:publish
php artisan migrate
php artisan storage:link