app/Http/Controllers/CourseController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $courses    = Course::orderBy('id', 'desc')->take(10)->get();
        $levels     = Level::all();
        $lecturers  = Lecturer::all();
        return view('course.create', compact('courses', 'levels', 'lecturers'));
    }
public function create ( ) { $ courses = Course :: orderBy ( 'id' , 'desc' ) -> take ( 10 ) -> get ( ) ; $ levels = Level :: all ( ) ; $ lecturers = Lecturer :: all ( ) ; return view ( 'course.create' , compact ( 'courses' , 'levels' , 'lecturers' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .