26 خطوط
596 B
PHP
26 خطوط
596 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreBacklogItemRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'title' => 'required|string|max:255',
|
|
'type' => 'required|string|max:50',
|
|
'project_id' => 'nullable|exists:projects,id',
|
|
'priority' => 'nullable|string|max:50',
|
|
'estimated_effort' => 'nullable|numeric',
|
|
'status' => 'nullable|string|max:50',
|
|
];
|
|
}
|
|
}
|