Exemplo n.º 1
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $hotel = Hoteluris::lists('nume', 'id');
     return view('administrare.pages.ofertestatice.create')->with('hoteluri', $hotel);
 }
Exemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     HoteluriImg::DeleteImg($id);
     Hoteluris::destroy($id);
     return \Redirect::back();
 }