Skip to content

Instantly share code, notes, and snippets.

@danjohnson95
Created May 4, 2017 09:06
Show Gist options
  • Save danjohnson95/a4f483ced010d512814a3d0ec4952116 to your computer and use it in GitHub Desktop.
Save danjohnson95/a4f483ced010d512814a3d0ec4952116 to your computer and use it in GitHub Desktop.
<?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