<?php

namespace App\Http\Requests\Direcciones;

use Illuminate\Foundation\Http\FormRequest;

class StoreDirecciones 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 [
            'id_tipo_direccion' => ['required', 'int'],
            'cp' => ['required','string', 'max:5'],
            'calle' => ['required','string', 'max:255'],
            'numero' => ['required','string', 'max:50'],
            'colonia' => ['required','string', 'max:150'],
            'municipio' => ['required','string', 'max:150'],
            'estado' => ['required','string', 'max:150'],
            'pais' => ['required','string', 'max:150'],
            'url_mapa' => ['required','string', 'max:255'],
            'observacion1' => ['required','string', 'max:255'],
            'observacion2' => ['string', 'max:255'],
        ];
    }
}
