protected function authenticatedHandler(Authenticated $event)
    {
        Integration::configureScope(function (Scope $scope) use ($event): void {
            $scope->setUser([
                'id' => $event->user->getAuthIdentifier(),
            ]);
        });
    }
protected function authenticatedHandler(Authenticated $event)
    {
        Integration::configureScope(function (Scope $scope) use ($event): void {
            $scope->setUser([
                'id' => $event->user->getAuthIdentifier(),
            ]);
        });
    }
protected function authenticatedHandler ( Authenticated $ event ) { Integration :: configureScope ( function ( Scope $ scope ) use ( $ event ) : void { $ scope -> setUser ( [ 'id' => $ event -> user -> getAuthIdentifier ( ) , ] ) ; } ) ; }
Since Laravel 5.3

@param \Illuminate\Auth\Events\Authenticated $event
Since Laravel 5 . 3