feat: add btn text

This commit is contained in:
2026-06-25 10:07:42 +03:30
parent 706b349130
commit 2b5a7c9b1b
5 changed files with 36 additions and 2 deletions
@@ -36,6 +36,7 @@ public function store(Request $request)
'title' => 'required|string|max:255',
'description' => 'nullable|string',
'link' => 'nullable|string|max:500',
'button_text' => 'nullable|string|max:255',
'start_date' => 'nullable|date',
'end_date' => 'nullable|date|after_or_equal:start_date',
'image_id' => 'nullable|exists:images,id',
@@ -68,6 +69,7 @@ public function update(Request $request, $id)
'title' => 'sometimes|string|max:255',
'description' => 'nullable|string',
'link' => 'nullable|string|max:500',
'button_text' => 'nullable|string|max:255',
'start_date' => 'nullable|date',
'end_date' => 'nullable|date|after_or_equal:start_date',
'image_id' => 'nullable|exists:images,id',