mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
34 lines
832 B
PHP
34 lines
832 B
PHP
<?php
|
|
namespace App\Models\Configuracion;
|
|
|
|
class FormasPagoModel extends \App\Models\GoBaseModel
|
|
{
|
|
protected $table = "lg_formas_pago";
|
|
|
|
/**
|
|
* Whether primary key uses auto increment.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $useAutoIncrement = true;
|
|
|
|
protected $allowedFields = ["nombre"];
|
|
protected $returnType = "App\Entities\Configuracion\FormasPagoEntity";
|
|
|
|
public static $labelField = "nombre";
|
|
|
|
protected $validationRules = [
|
|
"nombre" => [
|
|
"label" => "FormasPagoes.nombre",
|
|
"rules" => "trim|required|max_length[255]",
|
|
],
|
|
];
|
|
|
|
protected $validationMessages = [
|
|
"nombre" => [
|
|
"max_length" => "FormasPagoes.validation.nombre.max_length",
|
|
"required" => "FormasPagoes.validation.nombre.required",
|
|
],
|
|
];
|
|
}
|