v1.4.0 - Added category search on the app

Added comments
Fixed code
Fixed pagination still being there without using it
This commit is contained in:
Anders
2020-09-22 10:45:27 +02:00
parent 505ed3710b
commit f95318a8f2
24 changed files with 157 additions and 63 deletions
@@ -74,7 +74,7 @@ class MenuPlanController extends Controller
return redirect()->route("menu-plans.index");
else {
$menuPlan->save();
$menuPlans = MenuPlan::query()->paginate(20);
$menuPlans = MenuPlan::query()->get();
$menuArray = [];
@@ -154,7 +154,7 @@ class MenuPlanController extends Controller
$menuplan->update($data);
$menuplan->save();
$menuPlans = MenuPlan::query()->paginate(20);
$menuPlans = MenuPlan::query()->get();
//Create news
if($request->newsoption == true){