<?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 AreaCityModel extends Base{

    protected $table = 'yh_area_city';
    use SoftDeletes;

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


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





}