app/Http/Controllers/Admin/EssayAssignmentsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\EssayAssignment  $essay_Assignment
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(EssayAssignment $essayassignment)
    {
        $tutors = Role::find(config('global.TUTOR_ROLE_ID'))->users()->get();
        $students = Role::find(config('global.STUDENT_ROLE_ID'))->users()->get();
        $essay_statuses = EssayStatus::all();
        $data = [
            'tutors'            => $tutors,
            'students'          => $students,
            'statuses'          => $essay_statuses,
            'essayassignment'   => $essayassignment
        ];
        return view('admin.essayassignments.edit')->with('data', $data);
    }
public function edit ( EssayAssignment $ essayassignment ) { $ tutors = Role :: find ( config ( 'global.TUTOR_ROLE_ID' ) ) -> users ( ) -> get ( ) ; $ students = Role :: find ( config ( 'global.STUDENT_ROLE_ID' ) ) -> users ( ) -> get ( ) ; $ essay_statuses = EssayStatus :: all ( ) ; $ data = [ 'tutors' => $ tutors , 'students' => $ students , 'statuses' => $ essay_statuses , 'essayassignment' => $ essayassignment ] ; return view ( 'admin.essayassignments.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .