/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $empresa = Enterprise::find($id); $planes = Plan::lists('nombre', 'id'); return view('enterprise.edit', compact('planes', 'empresa')); }
public function getList() { return Plan::lists('naam', 'id'); }