Skip to content

Commit 98c7edc

Browse files
committed
fix
1 parent ef2e7fd commit 98c7edc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Http/Controllers/SmartAdManagerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function store(StoreSmartAdRequest $request){
4242
'image' => isset($imagePath) ? $imagePath : null,
4343
'imageUrl' => $request->imageUrl,
4444
'imageAlt' => $request->imageAlt,
45+
'enabled' => true,
4546
'placements' => !empty(json_decode($request->placements)[0]->selector) ? $request->placements : null,
4647
]);
4748
return redirect("/smart-ad-manager/ads/{$smartAd->id}")->with(['message' => 'Ad Created', 'color' => 'green']);

0 commit comments

Comments
 (0)