*/ protected $maps = [ DepartaimantCollectionType::current->value => DepartaimantCurrent::class, DepartaimantCollectionType::vintage->value => DepartaimantVintage::class, ]; /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return Auth::guard('club')->check(); } /** * Prepare the data for validation. */ public function prepareForValidation(): void { $this->merge([ 'maps' => $this->maps, ]); } /** * Get the validation rules that apply to the request. */ public function rules(): array { return [ 'state' => [ Rule::enum(DepartaimantStatus::class), ], ]; } }