public function afterDelete()
    {
      if( $this->pictureToDelete ) {

        $this->deleteVersions($this->pictureToDelete);

        $this->pictureToDelete = null;
      }
    }
public function afterDelete()
    {
      if( $this->pictureToDelete ) {

        $this->deleteVersions($this->pictureToDelete);

        $this->pictureToDelete = null;
      }
    }
public function afterDelete ( ) { if ( $ this -> pictureToDelete ) { $ this -> deleteVersions ( $ this -> pictureToDelete ) ; $ this -> pictureToDelete = null ; } }
Remove all versions of the picture from the storage after delete the
record from the database
Remove all versions of the picture from the storage after delete the record from the database