- Nuevo modulo de historial de cambios (ServicioHistorial) - Observer para tracking automatico de cambios en servicios - Correccion de variables auxiliar en ServiciosController - Actualizacion de configuraciones y migraciones - Endpoint para consultar historial de cambios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
1.2 KiB
PHP
Executable File
46 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Requests\Administrador;
|
|
|
|
use App\Models\Cliente;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class ClientesDomiciliosRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'nombre_sucursal'=>'string|required|max:191',
|
|
'numero_sucursal' => 'numeric|required',
|
|
'nombre_responsable_sucursal'=>'string|required|max:191',
|
|
'calle'=>'string|required|max:191',
|
|
'entre_calles'=>'max:191',
|
|
'num_ext'=>'string|required|max:10',
|
|
'num_int'=>'nullable|max:10',
|
|
'colonia'=>'string|required|max:191',
|
|
'ciudad'=>'string|required|max:191',
|
|
'cp'=>'max:191',
|
|
'telefono' => 'alpha_num|required|max:10',
|
|
'celular_responsable' => 'alpha_num|required|max:10',
|
|
//'lat' => 'numeric|required',
|
|
//'lng' => 'numeric|required'
|
|
];
|
|
}
|
|
}
|