示例#1
0
 public function handleCreate()
 {
     //get file path
     $book = new 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->created_by_id = Auth::id();
     $book->updated_by_id = Auth::id();
     $book->save();
     return Redirect::action('AdminLibraryUserController@index')->with('flash_edit_success', 'Hurray!You have added a new Book User');
 }