app/Http/Controllers/Admin/RejectedTutorsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\User  $user
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(User $rejectedtutor)
    {
        if (Gate::denies('manage-tutors')) {
            return redirect(route('admin.rejectedtutors.index'));
        }
        $rejectedtutor->delete();
        return redirect(route('admin.rejectedtutors.index'));
    }
public function destroy ( User $ rejectedtutor ) { if ( Gate :: denies ( 'manage-tutors' ) ) { return redirect ( route ( 'admin.rejectedtutors.index' ) ) ; } $ rejectedtutor -> delete ( ) ; return redirect ( route ( 'admin.rejectedtutors.index' ) ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .