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',
@@ -34,6 +34,7 @@ public function store(Request $request)
'version_name' => 'required|string|max:255',
'version_code' => 'required|integer|min:0',
'link' => 'nullable|string|max:500',
'button_text' => 'nullable|string|max:255',
'image_id' => 'nullable|exists:images,id',
'image' => 'nullable|file|extensions:jpg,jpeg,png,gif,webp,bmp,svg|max:8192',
]);
@@ -66,6 +67,7 @@ public function update(Request $request, $id)
'version_name' => 'sometimes|string|max:255',
'version_code' => 'sometimes|integer|min:0',
'link' => 'nullable|string|max:500',
'button_text' => 'nullable|string|max:255',
'image_id' => 'nullable|exists:images,id',
'image' => 'nullable|file|extensions:jpg,jpeg,png,gif,webp,bmp,svg|max:8192',
]);