app/Providers/AppServiceProvider.php
/**
     * Register any application services.
     *
     * @return void
     */
Register any application services.
@return void
Register any application services . @return void
public function register()
    {
        $this->app->singleton('GuzzleHttp\Client',function(){
            return new Client([
                'base_uri' => 'backend-rest.test/api/',
            ]);
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'GuzzleHttp\Client' , function ( ) { return new Client ( [ 'base_uri' => 'backend-rest.test/api/' , ] ) ; } ) ; }
Register any application services.
Register any application services .