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(
            EmployeeRepositoryInterface::class,
            EmployeeEloquentRepository::class
        );
        $this->app->singleton(
            EmployeeServiceInterface::class,
            EmployeeService::class
        );
    }
public function register ( ) { $ this -> app -> singleton ( EmployeeRepositoryInterface :: class , EmployeeEloquentRepository :: class ) ; $ this -> app -> singleton ( EmployeeServiceInterface :: class , EmployeeService :: class ) ; }
Register any application services.
Register any application services .