<?php

namespace App\Http\Requests\Prediction;

use Illuminate\Foundation\Http\FormRequest;

class StorePredictionRequest extends FormRequest
{
    public function authorize(): bool { return true; }

    public function rules(): array
    {
        return [
            'match_id'   => ['required', 'integer', 'exists:football_matches,id'],
            'prediction' => ['required', 'in:home,away,draw'],
        ];
    }
}
