app/Http/Requests/StoreCliente.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
         'nombre'=>'required|max:80','apellido'=>'required|max:80',
            'cdaorecinto'=>'required',
            'contacto'=>'required|max:10|min:10',
            'canton_id'=>'required',
            'gps'=>'required',
            'fechanacimiento'=>'required'
            ,'direccion'=>'required'
            ,'latitud'=>'required'
            ,'longitud'=>'required'
        ];
    }
public function rules ( ) { return [ 'nombre' => 'required|max:80' , 'apellido' => 'required|max:80' , 'cdaorecinto' => 'required' , 'contacto' => 'required|max:10|min:10' , 'canton_id' => 'required' , 'gps' => 'required' , 'fechanacimiento' => 'required' , 'direccion' => 'required' , 'latitud' => 'required' , 'longitud' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// esto retorna al formulario 