public function delete(Listener $listener, $id)
    {
        try {
            $model = LogsLoginDevices::query()->findOrFail($id);
            if ($model->delete()) {
                return $listener->deviceDeletedSuccessfully();
            }
        } catch (Exception $ex) {
            Log::emergency($ex);
            return $listener->deviceDeletionFailed();
        }
    }
public function delete(Listener $listener, $id)
    {
        try {
            $model = LogsLoginDevices::query()->findOrFail($id);
            if ($model->delete()) {
                return $listener->deviceDeletedSuccessfully();
            }
        } catch (Exception $ex) {
            Log::emergency($ex);
            return $listener->deviceDeletionFailed();
        }
    }
public function delete ( Listener $ listener , $ id ) { try { $ model = LogsLoginDevices :: query ( ) -> findOrFail ( $ id ) ; if ( $ model -> delete ( ) ) { return $ listener -> deviceDeletedSuccessfully ( ) ; } } catch ( Exception $ ex ) { Log :: emergency ( $ ex ) ; return $ listener -> deviceDeletionFailed ( ) ; } }
on delete device

@param Listener $listener
@param mixes $id
@return \Illuminate\Http\RedirectResponse
on delete device