예제 #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);
 }