Bit Bucket Server Installation

Install using composer
$ composer require laravel-shield/bitbucket-server

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

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

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

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