src/Http/Controllers/Managerarea/MembersController.php
public function destroy(Member $member)
    {
        $member->delete();

        return intend([
            'url' => route('managerarea.members.index'),
            'with' => ['warning' => trans('cortex/foundation::messages.resource_deleted', ['resource' => trans('cortex/auth::common.member'), 'identifier' => $member->username])],
        ]);
    }
public function destroy(Member $member)
    {
        $member->delete();

        return intend([
            'url' => route('managerarea.members.index'),
            'with' => ['warning' => trans('cortex/foundation::messages.resource_deleted', ['resource' => trans('cortex/auth::common.member'), 'identifier' => $member->username])],
        ]);
    }
public function destroy ( Member $ member ) { $ member -> delete ( ) ; return intend ( [ 'url' => route ( 'managerarea.members.index' ) , 'with' => [ 'warning' => trans ( 'cortex/foundation::messages.resource_deleted' , [ 'resource' => trans ( 'cortex/auth::common.member' ) , 'identifier' => $ member -> username ] ) ] , ] ) ; }
Destroy given member.

@param \Cortex\Auth\Models\Member $member

@throws \Exception

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
Destroy given member .