<?php

namespace App\Repositories;

use App\Models\ConfigCityManagement;

class ConfigCityManagementRepository
{
    public function __construct(ConfigCityManagement $configCityManagement)
    {
        $this->configCityManagement = $configCityManagement;
    }


    public function index($request)
    {
        $page = isset($request['page']) ? $request['page'] : env('PAGE');
            $this->configCityManagement = $this->configCityManagement
                ->orderBy('id', 'desc')
                ->where('status',0);

            return $this->configCityManagement->paginate($page);

    }
}