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(
            ProductRepository::class,
            ProductRepositoryImpl::class
        );
        $this->app->singleton(
            ProductService::class,
            ProductServiceImpl::class
        );
    }
public function register ( ) { $ this -> app -> singleton ( ProductRepository :: class , ProductRepositoryImpl :: class ) ; $ this -> app -> singleton ( ProductService :: class , ProductServiceImpl :: class ) ; }
Register any application services.
Register any application services .
//