Facebook Messenger Installation

Install using composer
$ composer require laravel-shield/facebook-messenger

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]');