app/Http/Controllers/Admin/TutorsController.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 $tutor)
    {
        if (Gate::denies('manage-tutors')) {
            return redirect(route('admin.tutors.index'));
        }
        $data = [
            'tutor'     => $tutor,
            'states'    => State::all(),
            'countries' => Country::all()
        ];
        return view('admin.tutors.edit')->with('data', $data);
    }
public function edit ( User $ tutor ) { if ( Gate :: denies ( 'manage-tutors' ) ) { return redirect ( route ( 'admin.tutors.index' ) ) ; } $ data = [ 'tutor' => $ tutor , 'states' => State :: all ( ) , 'countries' => Country :: all ( ) ] ; return view ( 'admin.tutors.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .