deleted unuses functional plan

This commit is contained in:
2023-12-20 10:35:18 +03:00
parent 46c3fcc12a
commit 04e0bf66ee

View File

@@ -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.
*