Beautiful Open-Source Form Builder
<?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'],
];
}
}