Find us on facebook

Oct 12, 2017

Register service provider

In config/app.php

App\Providers\RouteServiceProvider::class,



<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class TestServiceProvider extends ServiceProvider {
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot() {
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register() {
        $this->app->bind('App\Contracts\AdvertisementInterface', 'App\Repositories\EloquentAdvertisementRepository');
           }
}

No comments:

Post a Comment