diff --git a/app/Http/Controllers/PlanController.php b/app/Http/Controllers/PlanController.php index 0f76e56..85a98f1 100644 --- a/app/Http/Controllers/PlanController.php +++ b/app/Http/Controllers/PlanController.php @@ -16,7 +16,6 @@ class PlanController extends Controller */ public function index(Request $request) { - /* dd($request->get('author')); */ if ($request->has('author')) { $author = $request->get('author'); $user = User::find($author); @@ -25,20 +24,9 @@ class PlanController extends Controller $plans = Plan::all(); } - try{ - $this->checkArgumentsJson($plans); - }catch(\InvalidArgumentException $error){ - return back()->with('error', $error->getMessage()); - } - - return view('plan/index', ['plans' => $plans]); } - private function checkArgumentsJson($plans){ - - } - /** * Show the form for creating a new resource. * @@ -92,14 +80,6 @@ class PlanController extends Controller ); } - private function unserializeOptions($str) - { - if (preg_match('/^".*"$/', $str)) { - return json_decode(stripslashes(mb_substr($str, 1, -1)), true); - } - return json_decode(stripslashes($str), true); - } - /** * Show the form for editing the specified resource. *