app/Http/Controllers/CourseController.php
/**
     * Display a listing of the courses.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the courses.
@return \Illuminate\Http\Response
Display a listing of the courses . @return \ Illuminate \ Http \ Response
public function index()
    {
        $list = Course::orderBy('id', 'DESC')->paginate(15);
        return view('panel.courses.index', compact('list'));
    }
public function index ( ) { $ list = Course :: orderBy ( 'id' , 'DESC' ) -> paginate ( 15 ) ; return view ( 'panel.courses.index' , compact ( 'list' ) ) ; }
Display a listing of the courses.
Display a listing of the courses .