Carga inicial
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?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'
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user