applicant-site/app/Http/Requests/admin/StoreDocumentRequest.php

26 lines
599 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\admin;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class StoreDocumentRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'name' => 'required|string|max:255',
2024-06-11 09:41:13 +03:00
'description' => 'string|nullable',
'position' => 'required|int|numeric|max:255',
'document' => 'required|file',
'admission_id' => 'required|int|numeric|max:1000',
];
}
}