src/ServiceProvider.php
public function register()
	{
		$this->app->singleton(RWRedis::class, function ($app) {
			return new RWRedis();
		});
		//replace class
		$this->app->bind('Illuminate\Contracts\Routing\ResponseFactory', ResponseFactory::class);

		$this->mergeConfigFrom(__DIR__ . '/../config/mimes.php', 'mimes');
		$this->mergeConfigFrom(__DIR__ . '/../config/output.php', 'output');

		//register router middleware
		$router = $this->app['router'];
		$router->aliasMiddleware('cross-domain', CrossDomain::class);
		$router->aliasMiddleware('encrypt', Encrypt::class);

		$this->app->instance('path.vendor', realpath(__DIR__.'/../../../'));
	}
public function register()
	{
		$this->app->singleton(RWRedis::class, function ($app) {
			return new RWRedis();
		});
		//replace class
		$this->app->bind('Illuminate\Contracts\Routing\ResponseFactory', ResponseFactory::class);

		$this->mergeConfigFrom(__DIR__ . '/../config/mimes.php', 'mimes');
		$this->mergeConfigFrom(__DIR__ . '/../config/output.php', 'output');

		//register router middleware
		$router = $this->app['router'];
		$router->aliasMiddleware('cross-domain', CrossDomain::class);
		$router->aliasMiddleware('encrypt', Encrypt::class);

		$this->app->instance('path.vendor', realpath(__DIR__.'/../../../'));
	}
Register the service provider.

@return void