PHPackages                             binary-cats/laranote - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. binary-cats/laranote

AbandonedLibrary[Mail &amp; Notifications](/categories/mail)

binary-cats/laranote
====================

Comment service for Laravel application

1.0.6(1y ago)112MITPHP

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/binary-cats/laranote)[ Packagist](https://packagist.org/packages/binary-cats/laranote)[ Docs](https://bitbucket.org/binary-cats/laranote)[ RSS](/packages/binary-cats-laranote/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laranotes
=========

[](#laranotes)

Internal note service for your Laravel application. This is not a "blog comment service".

Installation and usage
----------------------

[](#installation-and-usage)

This package requires PHP 7 and Laravel 5.6 or higher.

```
php composer require binary-cats\laranote
```

Publish Migrations

```
php artisan vendor:publish --provider=BinaryCats\\Laranote\\LaranoteServiceProvider --tag=migrations
```

Optionally, publish configuration

```
php artisan vendor:publish --provider=BinaryCats\\Laranote\\LaranoteServiceProvider --tag=config
```

For any model that you want to have notes, import `BinaryCats\Laranote\HasManyNotes` as

```
use BinaryCats\Laranote\HasManyNotes;

class User extends Model

    use HasManyNotes;
```

To get all notes, use the `notes()` method.

To add a new note:

```
$user->note('This is a note content');
```

a note will be automatically added using currently logged in user. You may pass `true` as a second argument, to make the note private.

To add a new note using another user:

```
$user = User::find(2);

$user->addNoteAsUser($user, 'This is a note content');
```

You may pass `true` as a third argument, to make this note private.

Additional functionality
------------------------

[](#additional-functionality)

### ContextKey

[](#contextkey)

In addition to `notes()` relation, HasManyNotes adds `makeContextKey()` that encrypts the model morph class and primary key. This value could be used as a owner key, if want to have a uniform note API service.

### Context macros in Request class

[](#context-macros-in-request-class)

To utilize context key on the incoming side of application, `Illuminate\Http\Request` class is extended with three macros:

- `decryptContextKey()` - decrypt the string into array
- `makeContext()` - make a model instance out of decrypted key
- `resolveContext()` -&gt; resolve the model instance from the DB.

Development roadmap
-------------------

[](#development-roadmap)

- `resolveContext()` to include trashed models, if the model supports soft-deletes
- Deleting context should result in soft-deleting notes, configurable
- A bootstrap drop-in component
- A vuejs drop-in component
- Global scope of private notes

```
composer test
```

Testing
-------

[](#testing)

Run the tests with:

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Cyrill Kalita](https://bitbucket.org/cyrillkalita)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Binary Cats is a web service agency based in Roselle, Illinois.

Does your business depend on our contributions? Reach out! All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1432 days

Total

2

Last Release

584d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebb48367388b4368b14cca42714bb13002d7414d9dc8da19c5490ef65c059719?d=identicon)[cyrill.kalita@gmail.com](/maintainers/cyrill.kalita@gmail.com)

---

Top Contributors

[![cyrillkalita](https://avatars.githubusercontent.com/u/2401848?v=4)](https://github.com/cyrillkalita "cyrillkalita (10 commits)")

---

Tags

laravelemailbinary-catslaravel-mail-helpers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/binary-cats-laranote/health.svg)

```
[![Health](https://phpackages.com/badges/binary-cats-laranote/health.svg)](https://phpackages.com/packages/binary-cats-laranote)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[osiemsiedem/laravel-autolink

A Laravel package for converting URLs in a given string of text into clickable links.

13126.3k](/packages/osiemsiedem-laravel-autolink)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
