-
modules/Screeenly/Providers/ScreeenlyServiceProvider.php
Open in GitHubuse Illuminate\Support\ServiceProvider; use Screeenly\Contracts\CanCaptureScreenshot; use Screeenly\Guards\ScreeenlyTokenGuard; use Screeenly\Services\ChromeBrowser; class ScreeenlyServiceProvider extends ServiceProvider { public function boot() { $this->app['view']->addNamespace('screeenly', base_path().'/modules/Screeenly/Resources/views'); $this->app->bind(CanCaptureScreenshot::class, ChromeBrowser::class); auth()->extend('screeenly-token', function ($app, $name, array $config) { return new ScreeenlyTokenGuard( auth()->createUserProvider($config['provider']), $this->app['request'] ); }); } // }