app/Http/Controllers/Admin/GradesController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Grade  $grade
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Grade $grade)
    {
        $subjects = Subject::all();
        $data =  [
            'subjects'  => $subjects,
            'grade'     => $grade,
        ];
        return view('admin.grades.edit')->with('data', $data);
    }
public function edit ( Grade $ grade ) { $ subjects = Subject :: all ( ) ; $ data = [ 'subjects' => $ subjects , 'grade' => $ grade , ] ; return view ( 'admin.grades.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .