/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $mSessions = MentorshipSession::all();
     foreach ($mSessions as $sess) {
         $facility = \DB::table('facility')->where('id', $sess->facility)->first();
         $facility = $facility->mfl_code . ": " . $facility->name;
         $sess->facility = $facility;
     }
     return view('pages.session.sessionhome', compact('mSessions'));
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $mSessions = MentorshipSession::all();
     return view('pages.session.sessionhome', compact('mSessions'));
 }