mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadida validacion
This commit is contained in:
@ -26,6 +26,28 @@ class TicketModel extends \App\Models\BaseModel
|
||||
8 => "t1.created_at",
|
||||
];
|
||||
|
||||
protected $validationRules = [
|
||||
"titulo" => [
|
||||
"label" => "Tickets.asunto",
|
||||
"rules" => "trim|required|max_length[255]",
|
||||
],
|
||||
"descripcion" => [
|
||||
"label" => "Tickets.descripcion",
|
||||
"rules" => "trim|required",
|
||||
],
|
||||
];
|
||||
|
||||
protected $validationMessages = [
|
||||
"titulo" => [
|
||||
"max_length" => "Tickets.validation.titulo.max_length",
|
||||
"required" => "Tickets.validation.titulo.required",
|
||||
],
|
||||
"descripcion" => [
|
||||
"decimal" => "Tickets.validation.descripcion.decimal",
|
||||
"required" => "Tickets.validation.descripcion.required",
|
||||
],
|
||||
];
|
||||
|
||||
public function getEstados()
|
||||
{
|
||||
$values = $this->db->table('tickets_estados')->get()->getResultArray();
|
||||
|
||||
Reference in New Issue
Block a user