first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Http\Requests\Directory;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class PriorityRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
$priority = $this->route('priority');
return [
'name' => ['required', 'string', 'max:255'],
'color_hex' => ['required', 'regex:/^#[0-9A-Fa-f]{6}$/'],
'level' => ['required', 'integer', 'between:1,4', Rule::unique('priorities', 'level')->ignore($priority)],
];
}
}