src/Traits/NotableTrait.php
public static function addNote(
        int $object_id, string $title, string $note): Note
    {

        return Note::create([
            'object_type' => __CLASS__,
            'object_id'   => $object_id,
            'title'       => $title,
            'note'        => $note,
        ]);

    }
public static function addNote(
        int $object_id, string $title, string $note): Note
    {

        return Note::create([
            'object_type' => __CLASS__,
            'object_id'   => $object_id,
            'title'       => $title,
            'note'        => $note,
        ]);

    }
public static function addNote ( int $ object_id , string $ title , string $ note ) : Note { return Note :: create ( [ 'object_type' => __CLASS__ , 'object_id' => $ object_id , 'title' => $ title , 'note' => $ note , ] ) ; }
Add a note.

@param int    $object_id
@param string $title
@param string $note

@return \Seat\Services\Models\Note
Add a note .