<?php /** * Created by 2020/4/23. * User: Joneq * Info: 2020/4/23 * Time: 上午9:40 */ namespace App\Http\Model; use Illuminate\Database\Eloquent\Model; class OutStoreModel extends Model {
protected $connection = 'mysql'; protected $table = 'out_store'; protected $primaryKey = 'out_store_id'; public $timestamps = false;
static public function getWhereObj($data) {
return $obj = self::where('store_id','=',app('request')->store_id)->where('is_del',0);
}