app/Http/Controllers/Admin/PackagesController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Package  $package
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Package $package)
    {
        $students = Role::find(config('global.STUDENT_ROLE_ID'))->users()->get();
        $grades = Grade::all();
        $data = [
            'students'  => $students,
            'grades'    => $grades,
            'package'   => $package
        ];
        return view('admin.packages.edit') -> with('data', $data);
    }
public function edit ( Package $ package ) { $ students = Role :: find ( config ( 'global.STUDENT_ROLE_ID' ) ) -> users ( ) -> get ( ) ; $ grades = Grade :: all ( ) ; $ data = [ 'students' => $ students , 'grades' => $ grades , 'package' => $ package ] ; return view ( 'admin.packages.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .