PHPackages                             dcastanera/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dcastanera/laravel-notes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dcastanera/laravel-notes
========================

Notes for Laravel 5 Models

014PHP

Since Feb 28Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Notes
=============

[](#laravel-notes)

This Laravel package is a simple morphable object for attaching notes to any object class in your system.

Installation
------------

[](#installation)

To install this package you must use composer. Enter the following:

```
composer require dcastanera/laravel-notes

```

### Service Provider

[](#service-provider)

Next we want to register the service provider in the /config/app.php file. Go to the array for providers and enter the following:

```
DCastanera\Roles\RolesServiceProvider::class,

```

### Migrations

[](#migrations)

Next we need to copy the migrations to add the notes table to the database:

```
php artisan vendor:publish

```

Next we need to run the migration.

```
php artisan migrate

```

Usage
-----

[](#usage)

In order to use the notes model you need to reference the package like so:

```
use DCastanera\Notes\Note;

```

### Add to Model

[](#add-to-model)

In order for you to access notes we need to add the notes method to the desired object you wish to attach notes to. You can do that by adding the following function to your object.

```
public function notes()
{
    return $this->morphMany('DCastanera\Notes\Note', 'noteable');
}

```

### Creating a note

[](#creating-a-note)

In order to create a note you need to first create the note and attach it to the object in order to save the relationship.

```
$note = new Note;
$note->note = 'This is the actual note content.';
$note->user_id = $user->id;

$object = new SomeObject;
$object->notes()->save($note);

```

### Deleting a note

[](#deleting-a-note)

To delete a note, you can simply call the note object by ID and delete:

```
$note = Note::find(1);
$note->delete();

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/de434862bb68cf816691678373b6302297616d9f6437bfcaa025f5a0d85cb69e?d=identicon)[dcastanera](/maintainers/dcastanera)

---

Top Contributors

[![dcastanera](https://avatars.githubusercontent.com/u/13420672?v=4)](https://github.com/dcastanera "dcastanera (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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