<?php

namespace App\Http\Requests;

class CreatorImportRequest extends FileImportRequest
{
    public function authorize(): bool
    {
        $organization = $this->attributes->get('current_organization');
        return $this->user()->can('import', [\App\Models\Creator::class, $organization]);
    }

    public function attributes(): array
    {
        return [
            'file' => 'File import',
        ];
    }
}
