<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class SpecialityRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'title' => 'required|min:3|max:180',
            'description' => 'required|min:3|max:240',
            'icon_name' => 'required|min:2|max:36',
            'high_complexity' => 'required|boolean',
            'order_no' => 'required|integer|min:1|max:65535',
            'active' => 'required|boolean',
        ];
    }
}
