app/Http/Controllers/Admin/RejectedTutorsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\User  $user
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(User $rejectedtutor)
    {
        if (Gate::denies('manage-tutors')) {
            return redirect(route('admin.rejectedtutors.index'));
        }
        $roles = Role::all();
        return view('admin.rejectedtutors.edit')->with('tutor', $rejectedtutor);
    }
public function edit ( User $ rejectedtutor ) { if ( Gate :: denies ( 'manage-tutors' ) ) { return redirect ( route ( 'admin.rejectedtutors.index' ) ) ; } $ roles = Role :: all ( ) ; return view ( 'admin.rejectedtutors.edit' ) -> with ( 'tutor' , $ rejectedtutor ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .