This commit is contained in:
baodev0
2026-08-04 17:18:15 +07:00
parent ad743d3767
commit a83fb1d8d3
24 changed files with 520 additions and 1 deletions
@@ -0,0 +1,23 @@
<?php
namespace Modules\Menu\App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreMenuItemRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'menu_id' => ['required', 'integer', 'exists:nav_menus,id'],
'label' => ['required', 'string', 'max:255'],
'url' => ['required', 'string', 'max:255'],
'icon' => ['nullable', 'string', 'max:255'],
];
}
}