/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $publishingCompanies = ['' => 'Select...'] + PublishingCompanies::lists('name', 'id')->toArray(); $genus = Gender::lists('label', 'id'); $book = Book::find($id); return \View::make('books.form')->with('datas', ['publishingCompanies' => $publishingCompanies, 'genus' => $genus])->with('book', $book); }