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

26 lines
566 B
PHP

<?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|max:255',
'description' => 'string',
'position' => 'required|int|max:255',
'document' => 'required|file',
'admission_id' => 'required|int|max:255',
];
}
}