Created
May 4, 2017 09:06
-
-
Save danjohnson95/a4f483ced010d512814a3d0ec4952116 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 Illuminate\Support\ServiceProvider; | |
use App\Contracts\ProductDataInterface; | |
use App\Models\Product; | |
class ProductServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bind the ProductDataInterface to the implementation | |
*/ | |
public function register() | |
{ | |
$this->app->bind( | |
ProductDataInterface::class, | |
Product::class | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment