app/Providers/RepositoriesServiceProvider.php
/**
     * Register any application services.
     *
     * @return void
     */
Register any application services.
@return void
Register any application services . @return void
public function register()
    {
        $this->app->bind(UserRepository::class,EloquentUserRepository::class);
        $this->app->bind(BaseRepository::class,EloquentExampleRepository::class);
    }
public function register ( ) { $ this -> app -> bind ( UserRepository :: class , EloquentUserRepository :: class ) ; $ this -> app -> bind ( BaseRepository :: class , EloquentExampleRepository :: class ) ; }
Register any application services.
Register any application services .