forked from eatvio/eatvio-infra
added edit plan
This commit is contained in:
@@ -24,9 +24,21 @@ class PlanController extends Controller
|
||||
} else {
|
||||
$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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user