Installs

0

Version

unknown

License

unknown

Installation

composer require laravel-shield/facebook-messenger

Usage

After installing add the following configuration to your config/shield.php file:

'services' => [
    'facebook-messenger' => [
        'driver' => \Shield\FacebookMessenger\FacebookMessenger::class,
        'options' => [
            'app_secret' => 'your-app-secret-key'
        ]
    ]
]

You can now add the middleware to your routes like so:

Route::middleware('shield:facebook-messenger')->post('/hooks/facebook-messenger', '[email protected]');