Skip to content

Commit

Permalink
fixed use default
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Sep 9, 2024
1 parent e05338c commit 981ffab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Admin/AreaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ public function update(Request $request, Area $area)

if ($request->has('use_default')){
$area->use_default = 1;
$area->save();
}else{
$area->use_default = 0;
}
$area->save();


return redirect()->back()->with(['message' => __('area :NAME of website updated', ['NAME' => $area->name])]);
Expand Down

0 comments on commit 981ffab

Please sign in to comment.