<?php namespace Ebuy\Product\Providers; use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the package. * * @var array */ protected $policies = [ // Bind Product policy \Ebuy\Product\Repositories\Eloquent\ProductRepository::class => \Ebuy\Product\Policies\ProductPolicy::class,// Bind Category policy \Ebuy\Product\Repositories\Eloquent\CategoryRepository::class => \Ebuy\Product\Policies\CategoryPolicy::class,// Bind Brand policy \Ebuy\Product\Repositories\Eloquent\BrandRepository::class => \Ebuy\Product\Policies\BrandPolicy::class, ]; /** * Register any package authentication / authorization services. * * @param \Illuminate\Contracts\Auth\Access\Gate $gate * * @return void */ public function boot(GateContract $gate) { parent::registerPolicies($gate); } }