<?php

namespace App\Providers;

use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Http\Request;


class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies = [
        'App\Model'          => 'App\Policies\ModelPolicy',
        'App\Role'           => 'App\Policies\RolePolicy',
        'App\Admin'          => 'App\Policies\AdminPolicy',
        'App\CategoryGroup'  => 'App\Policies\CategoryGroupPolicy',
        'App\Brand'          => 'App\Policies\BrandPolicy',
        'App\Category'       => 'App\Policies\CategoryPolicy',
        'App\Config'         => 'App\Policies\ConfigPolicy',
        'App\Page'           => 'App\Policies\PagePolicy',
        'App\Slide'          => 'App\Policies\SlidePolicy',
        'App\Position'       => 'App\Policies\PositionPolicy',
        'App\Attribute'      => 'App\Policies\AttributePolicy',
        'App\Product'        => 'App\Policies\ProductPolicy',
        'App\Carousel'       => 'App\Policies\CarouselPolicy',
        'App\Ad'             => 'App\Policies\AdPolicy',
        'App\Company'        => 'App\Policies\CompanyPolicy',
        'App\Invoice'        => 'App\Policies\InvoicePolicy',
        'App\Order'          => 'App\Policies\OrderPolicy',
        'App\User'           => 'App\Policies\UserPolicy',
    ];

    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

        //
    }
}
