added edit plan

This commit is contained in:
2023-12-19 22:38:17 +03:00
parent 06409455fd
commit dd171b6f5c
4 changed files with 701 additions and 2 deletions

View File

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