コード例 #1
0
ファイル: PageController.php プロジェクト: rakeen/creative
 public function about()
 {
     $teachers = Teacher::all();
     return view("pages.about")->with(["pageTitle" => "About", "teachers" => $teachers]);
 }
コード例 #2
0
 public function index()
 {
     return Teacher::all();
 }
コード例 #3
0
 /**
  * Returns all Teachers
  *
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function all()
 {
     return Teacher::all();
 }
コード例 #4
0
ファイル: TeacherController.php プロジェクト: b0yblake1/duan
 function getIndex()
 {
     $data['list_teachers'] = Teacher::all();
     return view('teacher.index')->with('data', $data);
 }