示例#1
0
 public function handleEdit()
 {
     $book = Borrow::findOrFail(Input::get('borrow'));
     $book->membership_id = Input::get('membership_id');
     $book->book_name = Input::get('book_name');
     $book->borrow_date = Input::get('from');
     $book->return_date = Input::get('to');
     $book->book_copy = Input::get('copy');
     $book->updated_by_id = Auth::id();
     $book->update();
     return Redirect::action('AdminLibraryUserController@index')->with('flash_edit_success', 'Hurray!You have updated a new Book');
 }