app/Http/Controllers/enroll_courseController.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('dashboard.enroll.enrolled',[
            'enroll_courses' => enroll_course::where('id', auth()->user()->id)->get(),
            'id_enroll' => enroll_course::where('id_enroll')->get()
        ]);
    }
public function index ( ) { return view ( 'dashboard.enroll.enrolled' , [ 'enroll_courses' => enroll_course :: where ( 'id' , auth ( ) -> user ( ) -> id ) -> get ( ) , 'id_enroll' => enroll_course :: where ( 'id_enroll' ) -> get ( ) ] ) ; }
Display a listing of the resource.
Display a listing of the resource .