//Route::get('/movies', function () { //$Movies = \App\Movie::where('title','=','shuga')->get(); //$Movies = \App\movie::where('rating','>'2)->get(); //select * from movies where rating > 2 //return $movies; //$movie= new \App\Movie(); //$Movie->title='Akirachix'; //$movie->genre='awesome'; //$movie->rating=5; //$movie->save(); // $movie= \App\Movie::find(5); // $movie->genre='Horror'; // $movie->rating=4; // $movie->save(); // return $movie; //return \App\Movie::all(); Route::get('/students', function () { //$Students = \App\Students::where('lastname','=','Maich')->get(); //return $Students; $students = new \App\Students(); $students->id = '6'; $students->firstname = 'Cate'; $students->lastname = 'Mwai'; $students->save(); // $movie= \App\Movie::find(5); // $movie->genre='Horror'; // $movie->rating=4; // $movie->save(); // return $movie; return \App\Students::all(); Route::get('/movies', 'studentsController@index'); });