[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
intervention
/
httpauth
/
src
/
Laravel
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Facades
SET
[ DEL ]
📄 HttpAuthServiceProvider.php
1,343 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: HttpAuthServiceProvider.php
<?php namespace Intervention\HttpAuth\Laravel; use Illuminate\Support\ServiceProvider; use Intervention\HttpAuth\HttpAuth; class HttpAuthServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application events. * * @return void */ public function boot() { $this->publishes([ __DIR__ . '/../config/config.php' => config_path('httpauth.php') ]); } /** * Register the service provider. * * @return void */ public function register() { // merge default config $this->mergeConfigFrom( __DIR__ . '/../config/config.php', 'httpauth' ); // register singleton $this->app->singleton('httpauth', function ($app) { return HttpAuth::make($app['config']->get('httpauth')); }); // bind classname $this->app->bind('Intervention\HttpAuth\HttpAuth', function ($app) { return HttpAuth::make($app['config']->get('httpauth')); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return ['httpauth']; } }