app/Http/Controllers/Admin/teacherController.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()
    {
        $teacher= Teacher::all();
        $course = Course::all();
        return view('Admin.Teacher.add',compact('teacher','course'));
    }
public function create ( ) { $ teacher = Teacher :: all ( ) ; $ course = Course :: all ( ) ; return view ( 'Admin.Teacher.add' , compact ( 'teacher' , 'course' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .