forked from eatvio/eatvio-infra
deleted unuses functional plan
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user