PHPackages                             rumspeed/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. rumspeed/laravel-notes

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

rumspeed/laravel-notes
======================

Add notes to your Eloquent models

v1.2.0(12mo ago)0251MITPHPPHP ^8.2CI passing

Since Jun 8Pushed 12mo agoCompare

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

READMEChangelog (3)Dependencies (10)Versions (4)Used By (0)

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

[](#laravel-notes)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e41b9a24172050eec68513d26e45b64e49d5f37a225fb9eef6e82b781cbef171/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72756d73706565642f6c61726176656c2d6e6f7465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rumspeed/laravel-notes)[![GitHub Tests Action Status](https://camo.githubusercontent.com/60062d499c0afead561c57f92969272a969ec4b3fb2cf4ff9d08224df826755c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f72756d73706565642f6c61726176656c2d6e6f7465732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/rumspeed/laravel-notes/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/23e2c37ddadd04dcaa04cf9b4706bf48dc8fc0dd1fc2de7301c0382e877f509c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f72756d73706565642f6c61726176656c2d6e6f7465732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/rumspeed/laravel-notes/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6a7386680f5eacc5e464e5833b9e2af5881ca762785150c38cb6ad95d725c244/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72756d73706565642f6c61726176656c2d6e6f7465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rumspeed/laravel-notes)

Easily add notes to your Eloquent models.

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

[](#installation)

You can install the package via composer:

```
composer require rumspeed/laravel-notes
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="notes-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="notes-config"
```

This is the contents of the published config file:

```
return [

    /* -----------------------------------------------------------------
     |  Models
     | -----------------------------------------------------------------
     */

    'authors' => [
        'table' => 'users',
        'model' => App\Models\User::class,
    ],

    'notes' => [
        'table' => 'notes',
        'model' => Rumspeed\LaravelNotes\Models\Note::class,
    ],
];
```

Usage
-----

[](#usage)

First things first, edit your eloquent model by using the `Rumspeed\LaravelNotes\Traits\HasManyNotes` trait.

```
