Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tushargugnani committed Jan 28, 2023
1 parent ef2e7fd commit 98c7edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Controllers/SmartAdManagerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function store(StoreSmartAdRequest $request){
'image' => isset($imagePath) ? $imagePath : null,
'imageUrl' => $request->imageUrl,
'imageAlt' => $request->imageAlt,
'enabled' => true,
'placements' => !empty(json_decode($request->placements)[0]->selector) ? $request->placements : null,
]);
return redirect("/smart-ad-manager/ads/{$smartAd->id}")->with(['message' => 'Ad Created', 'color' => 'green']);
Expand Down

0 comments on commit 98c7edc

Please sign in to comment.