app/Http/Controllers/StudentController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $students = Student::orderBy('id','desc')->get();
        return view('students.index',['students' => $students]);
    }
public function index ( ) { $ students = Student :: orderBy ( 'id' , 'desc' ) -> get ( ) ; return view ( 'students.index' , [ 'students' => $ students ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//抓取資料 // dd($student);