evabioz / og-middleware
Laravel middleware for allow open graph bot visit it
v1.0.0
2017-07-11 17:42 UTC
Requires
- php: >=5.5.9
- illuminate/support: ~5.0
This package is not auto-updated.
Last update: 2025-02-02 04:42:25 UTC
README
Laravel middleware for allow open graph bot visit it
Requirements
- PHP 5.5.9+
- Laravel 5+
Installation
First, pull in the package through Composer.
composer require evabioz/og-middleware
And then include the service provider within app/config/app.php
.
'providers' => [ Evabioz\OGMiddleware\OGMiddlewareServiceProvider::class, ];
Publish the package config file
$ php artisan vendor:publish --provider="Evabioz\OGMiddleware\OGMiddlewareServiceProvider"
Configuration
You can use named route, or asterix syntax (without start and end markers).
// within app/config/og-middleware.php 'route_endpoint_list' => [ // 'foo/bar' => OpenGraphEndpoint::class ],
License
The MIT License (MIT). Please see License File for more information.