PHP code example of davmixcool / laravel-meta-manager

1. Go to this page and download the library: Download davmixcool/laravel-meta-manager 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/ */

    

davmixcool / laravel-meta-manager example snippets


'providers' => [
        Davmixcool\MetaManager\MetaServiceProvider::class,
];

@

@    'title'         => 'My Example Title',
    'description'   => 'This is my example description',
    'image'         => 'Url to the image',
])

use Davmixcool\MetaManager\Facades\Meta;

Meta::title('My Example Title')
    ->description('This is my example description')
    ->image(asset('og.png'), width: 1200, height: 630, alt: 'My Example Title');

{!! Meta::render() !!}
text
php artisan meta:check