Skip to content

Beautiful Open-Source Form Builder

457 B
Raw Blame
<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UploadAssetRequest extends FormRequest
{
    public const FORM_ASSET_MAX_SIZE = 5000000;

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'url' => ['required', 'string'],
            'type' => ['nullable', 'string'],
        ];
    }
}