<?php

namespace App\Http\Requests\CRM;

use Illuminate\Foundation\Http\FormRequest;

class StoreCompanyRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'business_name' => 'required|string|max:255',
            'short_name'    => 'required|string|max:255',
            'mb'            => 'required|string|max:255',
            'pib'           => 'required|string|max:255',
            'email'         => 'required|email|unique:companies,email',
            'mobile'        => 'nullable|string|max:255',
            'phone'         => 'nullable|string|max:255',
        ];
    }
}
