PHPackages                             icodestuff/laravel-notes - 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. [Database &amp; ORM](/categories/database)
4. /
5. icodestuff/laravel-notes

ActiveLibrary[Database &amp; ORM](/categories/database)

icodestuff/laravel-notes
========================

Provides the ability to add notes to your Eloquent models in Laravel.

1.0.3(1y ago)1662MITPHPPHP ^8.1

Since Nov 16Pushed 1y agoCompare

[ Source](https://github.com/icodestuff-io/laravel-notes)[ Packagist](https://packagist.org/packages/icodestuff/laravel-notes)[ Docs](https://github.com/icodestuff-io/laravel-notes)[ RSS](/packages/icodestuff-laravel-notes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

[![Logo Laravel Pint](/art/logo.svg)](/art/logo.svg)

[ ![Packagist License](https://camo.githubusercontent.com/418049a1a511bccf9e0620e33e85fac4968544f6262e9fa619bece298a3f9f6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f69636f646573747566662d696f2f6c61726176656c2d6e6f7465732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[ ![Github Workflow Status](https://camo.githubusercontent.com/cda04be4158436c386ae0c0ab4692713eb0ca554abbe4872d666748676ce1808/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f69636f646573747566662d696f2f6c61726176656c2d6e6f7465732f72756e2d74657374733f7374796c653d666c61742d737175617265)](https://github.com/icodestuff-io/laravel-notes/actions)[ ![Coverage Status](https://camo.githubusercontent.com/1f7fe8d36dd7eff9bea218ec766975b1341acccaf0f88a174de53afb63c6a93f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f69636f646573747566662d696f2f6c61726176656c2d6e6f7465732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/icodestuff-io/laravel-notes/?branch=master)[ ![Packagist Downloads](https://camo.githubusercontent.com/5c61e8268a4cb0cb0fd127aa689c1416f54bef3c3de64ad4c3a338941ed88a8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69636f646573747566662d696f2f6c61726176656c2d6e6f7465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/icodestuff-io/laravel-notes)

Laravel Notes is a flexible and easy-to-use package that adds a notes system to your Laravel application. It’s well-tested, highly configurable, and works seamlessly with multiple Laravel versions. ---

Features
--------

[](#features)

- Flexible notes system.
- Easy setup &amp; configuration.
- IDE-friendly and well-documented.

---

Table of Contents
-----------------

[](#table-of-contents)

1. [Installation and Setup](#installation-and-setup)
2. [Configuration](#configuration)
3. [Usage](#usage)
4. [Contribution Guidelines](#contribution)
5. [Security](#security)
6. [Credits](#credits)

---

1. Installation and Setup
-------------------------

[](#1-installation-and-setup)

### Installation via Composer

[](#installation-via-composer)

Install the package using Composer:

```
composer require icodestuff/laravel-notes

```

### Setup for Laravel

[](#setup-for-laravel)

> **Note:** This package will automatically register itself for Laravel `>= 5.5`.

For earlier versions, manually register the service provider in `config/app.php`:

```
'providers' => [
    // Other service providers...
    Icodestuff\LaravelNotes\LaravelNotesServiceProvider::class,
],

```

Publish the configuration file:

```
php artisan vendor:publish --provider="Icodestuff\LaravelNotes\LaravelNotesServiceProvider"

```

---

2. Configuration
----------------

[](#2-configuration)

Customize the package by editing `config/notes.php`:

```
return [
    'database' => [
        'connection' => env('DB_CONNECTION', 'mysql'),
        'prefix'     => null,
    ],
    'authors' => [
        'table' => 'users',
        'model' => App\User::class,
    ],
    'notes' => [
        'table' => 'notes',
        'model' => Icodestuff\LaravelNotes\Models\Note::class,
    ],
];

```

---

3. Usage
--------

[](#3-usage)

### Adding Notes to Models

[](#adding-notes-to-models)

Use the `HasManyNotes` trait in your model:

```
use Icodestuff\LaravelNotes\Traits\HasManyNotes;

class Post extends Model {
    use HasManyNotes;
}

```

Add a note:

```
$post = App\Post::first();
$note = $post->createNote('This is a note!');

```

Add a note with an author:

```
$user = App\User::first();
$note = $post->createNote('Note with author', $user);

```

Retrieve notes:

```
$notes = $post->notes;

```

---

### Using the `HasOneNote` Trait

[](#using-the-hasonenote-trait)

For managing a single note on a model, use the `HasOneNote` trait:

```
use Icodestuff\LaravelNotes\Traits\HasOneNote;

class Post extends Model {
    use HasOneNote;
}

```

Access the note:

```
$note = $post->note;

```

---

### Retrieve Author's Notes

[](#retrieve-authors-notes)

Add the `AuthoredNotes` trait to your `User` model to retrieve all notes authored by a user:

```
use Icodestuff\LaravelNotes\Traits\AuthoredNotes;

class User extends Model {
    use AuthoredNotes;
}

```

Retrieve the author's notes:

```
$user = App\User::first();
$notes = $user->authoredNotes;

```

---

### Find a Specific Note by ID

[](#find-a-specific-note-by-id)

To find a note by its ID:

```
$post = App\Post::first();
$note = $post->findNote(1);

```

> **Note:** The `findNote` method is only available in the `HasManyNotes` trait.

---

Contribution
------------

[](#contribution)

Feel free to submit any issues or pull requests! Please read the [contribution guidelines](CONTRIBUTING.md) first.

---

Security
--------

[](#security)

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

---

Credits
-------

[](#credits)

- [ARCANEDEV](https://github.com/arcanedev-maroc)
- [Solomon Antoine](https://github.com/Solomon04)
- [All Contributors](https://github.com/icodestuff-io/laravel-notes/graphs/contributors)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance41

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.9% 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 ~7 days

Total

4

Last Release

518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/180fec65ce73b52ee74a22c013fa889cc316bae04d1477a7423e6f71918d67c0?d=identicon)[solomon\_04](/maintainers/solomon_04)

---

Top Contributors

[![arcanedev-maroc](https://avatars.githubusercontent.com/u/3282340?v=4)](https://github.com/arcanedev-maroc "arcanedev-maroc (73 commits)")[![Solomon04](https://avatars.githubusercontent.com/u/35110194?v=4)](https://github.com/Solomon04 "Solomon04 (7 commits)")[![kamaroly](https://avatars.githubusercontent.com/u/3633772?v=4)](https://github.com/kamaroly "kamaroly (2 commits)")[![ebebbington](https://avatars.githubusercontent.com/u/47337480?v=4)](https://github.com/ebebbington "ebebbington (1 commits)")[![underdpt](https://avatars.githubusercontent.com/u/8122137?v=4)](https://github.com/underdpt "underdpt (1 commits)")[![uovidiu](https://avatars.githubusercontent.com/u/76910?v=4)](https://github.com/uovidiu "uovidiu (1 commits)")

---

Tags

laravelnotesnoteableIcodestuff

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/icodestuff-laravel-notes/health.svg)

```
[![Health](https://phpackages.com/badges/icodestuff-laravel-notes/health.svg)](https://phpackages.com/packages/icodestuff-laravel-notes)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[arcanedev/laravel-notes

Provides the ability to add notes to your Eloquent models in Laravel.

4849.7k](/packages/arcanedev-laravel-notes)[arcanedev/laravel-settings

This package allows you to persists configs/settings for Laravel projects.

74131.4k6](/packages/arcanedev-laravel-settings)[cubettech/lacassa

Cassandra based query builder for laravel.

358.5k](/packages/cubettech-lacassa)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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