Exemplo n.º 1
0
 /**
  * Update the specified book resource in storage.
  *
  * @param BookRequest $request App\Http\Requests\BookRequest request
  * @param Book $book           App\Book model
  *
  * @return \Illuminate\Http\Response
  */
 public function update(BookRequest $request, Book $book)
 {
     $book->update($request->only(['title', 'description']));
     return redirect()->action('BooksController@index')->withSuccess("Książka \"{$book->title}\" została zaktualizowana");
 }