<?php

namespace App\Http\Requests\Tenant;

use Illuminate\Foundation\Http\FormRequest;

class TenantLogoUploadRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'logo' => 'required|image|mimes:jpeg,png,gif,webp|max:5120', // 5MB
        ];
    }

    public function messages(): array
    {
        return [
            'logo.required' => __('validation.required', ['attribute' => '로고 이미지']),
            'logo.image' => __('validation.image', ['attribute' => '로고']),
            'logo.mimes' => __('validation.mimes', ['attribute' => '로고', 'values' => 'jpeg, png, gif, webp']),
            'logo.max' => __('validation.max.file', ['attribute' => '로고', 'max' => '5MB']),
        ];
    }
}
