<?php

namespace App\Http\Requests\Frontend;

use App\Http\Requests\ApiFormRequest;

class LandingTeacherRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return $this->user() !== null;
    }

    public function rules(): array
    {
        return [
            'class_section_id' => ['nullable', 'integer', 'min:1'],
        ];
    }
}
