public function getById($idCli) { $cli = new Client(); $result = $cli->getById($idCli); return Response()->json($result->toArray(), 200); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $cli = new Client(); $client = $cli->getById($id); return view('client.edit')->with('client', $client); }