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