<?php

namespace App\Http\Requests\Api\Partner;

use Illuminate\Foundation\Http\FormRequest;

class PartnerRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'partner_id' => 'required|exists:partners,id',
            'phone' => 'required|numeric',
            'full_name' => 'required',
            'comment' => 'nullable',
            'city_id' => 'required|exists:cities,id',
            'price' => 'nullable',
        ];
    }
}
