GitLab Installation

Install using composer
$ composer require laravel-shield/gitlab

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

'services' => [
    'gitlab' => [
        'driver' => \Shield\GitLab\GitLab::class,
        'options' => [
            'token' => 'your-webhook-token'
        ]
    ]
]

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

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