Created
March 14, 2018 01:45
-
-
Save jsdecena/67ebd14b31707b14dc6e197f40c61cce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use App\Articles\Repositories\ArticlesRepository; | |
use App\Articles\Repositories\Interfaces\ArticleRepositoryInterface; | |
use Illuminate\Support\ServiceProvider; | |
class RepositoryServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bind the interface to an implementation repository class | |
*/ | |
public function register() | |
{ | |
$this->app->bind( | |
ArticleRepositoryInterface::class, | |
ArticlesRepository::class | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment