<?php

namespace Mehrab\Common\Providers;

use Database\Seeders\DatabaseSeeder;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Mehrab\OrderService\Http\Middleware\choose_team_leader_store;
use Mehrab\OrderService\Models\CancelOrdersService;
use Mehrab\OrderService\Models\OrderService;
use Mehrab\OrderService\Policies\CancelOrderServicePolicy;
use Mehrab\OrderService\Policies\OrderServicePolicy;
use Mehrab\Region\Models\Region;
use Mehrab\Service\Models\Service;
use Mehrab\User\Database\Seeds\UserSeeder;
use Mehrab\User\Http\Middleware\UserMiddleware;
use Mehrab\User\Models\User;
use Mehrab\User\Policies\UserPolicy;

class CommonServiceProvider extends \Illuminate\Support\ServiceProvider
{
    public function register()
    {
//        $this->loadRoutesFrom(__DIR__."/../Routes/.php");
        $this->loadViewsFrom(__DIR__.'/../Resources/Views/','Common');
//        $this->loadJsonTranslationsFrom(__DIR__.'/../Resources/Lang/');
    }

    public function boot()
    {
        Paginator::defaultView('Common::vendor.pagination.customPaginate');

        Paginator::defaultSimpleView('Common::vendor.pagination.customPaginate');

    }

}
