app/Http/Controllers/StudentsController.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()
    {
         $arr_class = Classes::orderby('class_name','ASC')->get();
           $arr_section = Sections::orderby('section_name','ASC')->get();
           return view('student_info.create', compact('arr_class', 'arr_section'));
    }
public function create ( ) { $ arr_class = Classes :: orderby ( 'class_name' , 'ASC' ) -> get ( ) ; $ arr_section = Sections :: orderby ( 'section_name' , 'ASC' ) -> get ( ) ; return view ( 'student_info.create' , compact ( 'arr_class' , 'arr_section' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .