From 788e2ff06ccacd56c8929b412d24413a013fe78f Mon Sep 17 00:00:00 2001 From: "Alfonso Saavedra \"Son Link" Date: Thu, 7 Nov 2024 17:12:51 +0100 Subject: [PATCH] Remove unused method data in BaseModel --- app/Models/BaseModel.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.php index 0a28393..82d4cba 100644 --- a/app/Models/BaseModel.php +++ b/app/Models/BaseModel.php @@ -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(); - } }