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