Admin Panel
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-29 14:57:37 +07:00
parent 04fbddba13
commit 8c6dad2a31
94 changed files with 4864 additions and 1151 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class OfficeRequest extends FormRequest
{
/**
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => ['required', 'string', 'max:255'],
'icon' => ['required', 'string', 'max:50', 'regex:/^[a-z0-9_]+$/'],
'building' => ['required', 'string', 'max:255'],
'street' => ['required', 'string', 'max:255'],
'area' => ['required', 'string', 'max:255'],
'city' => ['required', 'string', 'max:255'],
'district' => ['required', 'string', 'max:255'],
'phone' => ['required', 'string', 'max:50'],
'maps_url' => ['nullable', 'url', 'max:500'],
'sort_order' => ['required', 'integer', 'min:0'],
];
}
}