src/UnisysApiServiceProvider.php
public function register()
    {
        $this->app->singleton(
            \Illuminate\Contracts\Debug\ExceptionHandler::class,
            \Unite\UnisysApi\Exceptions\Handler::class
        );

        $this->app->singleton(
            \Illuminate\Foundation\Auth\User::class,
            \Unite\UnisysApi\Models\User::class
        );

        if ($this->app->environment() === 'local') {
//            $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
            $this->app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);
        }

        $this->app->singleton('companyProfile', function ($app) {
            return $app['cache']->remember('companyProfile', 60*12, function () {
                return app(SettingService::class)->companyProfile();
            });
        });

        app()->config["filesystems.disks.uploads"] = [
            'driver' => 'local',
            'root'   => public_path('uploads'),
            'visibility' => 'public',
        ];

        app()->config["filesystems.disks.protectedUploads"] = [
            'driver' => 'local',
            'root'   => storage_path('app/uploads'),
            'visibility' => 'private',
        ];
    }
public function register()
    {
        $this->app->singleton(
            \Illuminate\Contracts\Debug\ExceptionHandler::class,
            \Unite\UnisysApi\Exceptions\Handler::class
        );

        $this->app->singleton(
            \Illuminate\Foundation\Auth\User::class,
            \Unite\UnisysApi\Models\User::class
        );

        if ($this->app->environment() === 'local') {
//            $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
            $this->app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);
        }

        $this->app->singleton('companyProfile', function ($app) {
            return $app['cache']->remember('companyProfile', 60*12, function () {
                return app(SettingService::class)->companyProfile();
            });
        });

        app()->config["filesystems.disks.uploads"] = [
            'driver' => 'local',
            'root'   => public_path('uploads'),
            'visibility' => 'public',
        ];

        app()->config["filesystems.disks.protectedUploads"] = [
            'driver' => 'local',
            'root'   => storage_path('app/uploads'),
            'visibility' => 'private',
        ];
    }
public function register ( ) { $ this -> app -> singleton ( \ Illuminate \ Contracts \ Debug \ ExceptionHandler :: class , \ Unite \ UnisysApi \ Exceptions \ Handler :: class ) ; $ this -> app -> singleton ( \ Illuminate \ Foundation \ Auth \ User :: class , \ Unite \ UnisysApi \ Models \ User :: class ) ; if ( $ this -> app -> environment ( ) === 'local' ) { //            $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); $ this -> app -> register ( \ Mpociot \ ApiDoc \ ApiDocGeneratorServiceProvider :: class ) ; } $ this -> app -> singleton ( 'companyProfile' , function ( $ app ) { return $ app [ 'cache' ] -> remember ( 'companyProfile' , 60 * 12 , function ( ) { return app ( SettingService :: class ) -> companyProfile ( ) ; } ) ; } ) ; app ( ) -> config [ "filesystems.disks.uploads" ] = [ 'driver' => 'local' , 'root' => public_path ( 'uploads' ) , 'visibility' => 'public' , ] ; app ( ) -> config [ "filesystems.disks.protectedUploads" ] = [ 'driver' => 'local' , 'root' => storage_path ( 'app/uploads' ) , 'visibility' => 'private' , ] ; }
Register any application services.

@return void
Register any application services .