src/Traits/NotableTrait.php
public static function deleteNote(int $object_id, int $note_id): int
    {

        return Note::where('object_type', __CLASS__)
            ->where('object_id', $object_id)
            ->where('id', $note_id)
            ->delete();

    }
public static function deleteNote(int $object_id, int $note_id): int
    {

        return Note::where('object_type', __CLASS__)
            ->where('object_id', $object_id)
            ->where('id', $note_id)
            ->delete();

    }
public static function deleteNote ( int $ object_id , int $ note_id ) : int { return Note :: where ( 'object_type' , __CLASS__ ) -> where ( 'object_id' , $ object_id ) -> where ( 'id' , $ note_id ) -> delete ( ) ; }
Delete a single note.

@param int $object_id
@param int $note_id

@return int
Delete a single note .