<?php

namespace App\Http\Requests;

use App\Models\InventoryMovement;
use Illuminate\Foundation\Http\FormRequest;

class StoreInventoryBulkAdjustCsvRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()->can('create', InventoryMovement::class);
    }

    public function rules(): array
    {
        return [
            'file' => ['required', 'file', 'max:2048'],
        ];
    }
}
