app/Http/Controllers/CoursesController.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()
    {
        return view('/courses',[
            'courses' => courses::all(),
        ]);
    }
public function index ( ) { return view ( '/courses' , [ 'courses' => courses :: all ( ) , ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//'courses' => courses::where('id_courses') //'courses' => Courses::where('id_courses', courses()->id_courses)->get()