1. Go to this page and download the library: Download jolimardi/laravel-metas 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/ */
jolimardi / laravel-metas example snippets
composer san vendor:publish --provider="JoliMardi\Metas\MetasServiceProvider"
php artisan migrate
php artisan metas:update
namespace App\Http\Controllers;
use JoliMardi\Metas\Services\MetasService;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\View;
class Controller extends BaseController {
use AuthorizesRequests, ValidatesRequests;
public function __construct() {
// Chargement des variables globales utilisables dans toutes les vues, et overridables dans les controllers
View::share('title', MetasService::getTitle());
View::share('description', MetasService::getDescription());
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.