public function deleted(Member $member)
    {
        $user = $member->user;
        if ($user->members->count() === 0) {
            $user->forceDelete();
        }
    }
public function deleted(Member $member)
    {
        $user = $member->user;
        if ($user->members->count() === 0) {
            $user->forceDelete();
        }
    }
public function deleted ( Member $ member ) { $ user = $ member -> user ; if ( $ user -> members -> count ( ) === 0 ) { $ user -> forceDelete ( ) ; } }
Listen to the Member delete event.

@param  Member  $member
@return void
Listen to the Member delete event .