feat: add btn text
This commit is contained in:
@@ -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',
|
||||
]);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
class Announcement extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'image_id', 'title', 'description', 'link', 'start_date', 'end_date',
|
||||
'image_id', 'title', 'description', 'link', 'button_text', 'start_date', 'end_date',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
class AppVersion extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'image_id', 'title', 'description', 'version_name', 'version_code', 'link',
|
||||
'image_id', 'title', 'description', 'version_name', 'version_code', 'link', 'button_text',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
||||
Reference in New Issue
Block a user