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,23 @@
<?php
namespace App\Http\Requests\Directory;
use Illuminate\Foundation\Http\FormRequest;
class DepartmentRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
$department = $this->route('department');
return [
'name' => ['required', 'string', 'max:255', 'unique:departments,name'.($department ? ','.$department->id : '')],
'description' => ['nullable', 'string'],
];
}
}