Remove unused method data in BaseModel
This commit is contained in:
parent
0b7be053a4
commit
788e2ff06c
|
@ -12,14 +12,4 @@ class BaseModel extends Model
|
|||
protected $validationRules = [];
|
||||
protected $validationMessages = [];
|
||||
protected $skipValidation = false;
|
||||
|
||||
public function data($id)
|
||||
{
|
||||
$builder = $this->builder();
|
||||
$builder->where('id', $id);
|
||||
|
||||
$query = $builder->get(1);
|
||||
|
||||
if ($query) return $query->getRow();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue