You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
407 B
22 lines
407 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ShopRegion extends Model
|
|
{
|
|
|
|
//
|
|
protected $table = "shop_region";
|
|
public $timestamps = false;
|
|
|
|
static public function getList($where){
|
|
return static::where($where)->get();
|
|
}
|
|
|
|
static public function getOne($where){
|
|
return static::select(['name','id','type'])->where($where)->first();
|
|
}
|
|
}
|