src/Services/CrudActions.php
public function detachFile(Model $item, $attachment)
    {
        try {
            $item->$attachment = Attachment::NULL_ATTACHMENT;
            $item->save();

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function detachFile(Model $item, $attachment)
    {
        try {
            $item->$attachment = Attachment::NULL_ATTACHMENT;
            $item->save();

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
public function detachFile ( Model $ item , $ attachment ) { try { $ item -> $ attachment = Attachment :: NULL_ATTACHMENT ; $ item -> save ( ) ; return true ; } catch ( \ Exception $ e ) { return false ; } }
Destroy an attachment.

@param   $item
@param   $attachment

@return bool
Destroy an attachment .