<?php
/**
 * Created by PhpStorm.
 * User: bmb369
 * Date: 2024-05-07
 * Time: 14:20
 */
namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;
class AreaCountyModel extends Base{

    protected $table = 'gz_area_county';
    use SoftDeletes;

    protected $dates = ['deleted_at'];
    protected $primaryKey = 'id';


    public function selectinfo(array $where, $field = ["*"])
    {
        return AreaCountyModel::where($where)->orderBy('sort', 'DESC')->orderBy('id', 'asc')->get($field)->toArray();
    }




}