<?php

namespace App\Http\Requests\V1;

use App\Models\Favourite;
use App\Models\User;
use Illuminate\Foundation\Http\FormRequest;

class FavouriteStoreRequest 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
     */
    public function rules()
    {
        return [
            'favourite_id' => 'required|integer',
            'favourite_type' => 'required|string|in:exhibition,artist,collection',
        ];
    }

    /**
     * Filters to be applied to the input.
     *
     * @return array
     */
    public function filters()
    {
        return [];
    }
}
