app/Http/Controllers/Admin/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()
    {
        $states = State::all();
        $countries = Country::all();
        $grades = Grade::with('subjects')->get();
        $grades_array = $grades->toArray();
        $referrers = Referrer::all();
        $student_statuses = StudentStatus::all();
        return view('admin.students.create', compact('grades', 'states', 'countries', 'grades_array', 'referrers'
        , 'student_statuses'));
    }
public function create ( ) { $ states = State :: all ( ) ; $ countries = Country :: all ( ) ; $ grades = Grade :: with ( 'subjects' ) -> get ( ) ; $ grades_array = $ grades -> toArray ( ) ; $ referrers = Referrer :: all ( ) ; $ student_statuses = StudentStatus :: all ( ) ; return view ( 'admin.students.create' , compact ( 'grades' , 'states' , 'countries' , 'grades_array' , 'referrers' , 'student_statuses' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .