Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return Room::all();
 }
Пример #2
0
 public function showRoom()
 {
     $rooms = Room::all();
     return view('admin.viewroom')->with('rooms', $rooms);
 }
Пример #3
0
 function getIndex()
 {
     $data['list_rooms'] = Room::all();
     return view('phonghoc.index')->with('data', $data);
 }