evabioz/og-middleware

Laravel middleware for allow open graph bot visit it

v1.0.0 2017-07-11 17:42 UTC

This package is not auto-updated.

Last update: 2024-05-26 00:25:38 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.