PHPackages                             akshaykhale1992/model-note - 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. akshaykhale1992/model-note

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

akshaykhale1992/model-note
==========================

A package to Add Note against a Laravel Model

6241PHP

Since Sep 9Pushed 7y ago2 watchersCompare

[ Source](https://github.com/akshaykhale1992/model-notes)[ Packagist](https://packagist.org/packages/akshaykhale1992/model-note)[ RSS](/packages/akshaykhale1992-model-note/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Model Notes
===========

[](#model-notes)

[![Scrutinizer Score](https://camo.githubusercontent.com/139f1c9c2c2807c8d7a4c41f61133fd81d30e0657c2daf0a4c58980a659ced5f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616b736861796b68616c65313939322f6d6f64656c2d6e6f7465732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/139f1c9c2c2807c8d7a4c41f61133fd81d30e0657c2daf0a4c58980a659ced5f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616b736861796b68616c65313939322f6d6f64656c2d6e6f7465732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)[![Scrutinizer Build Status](https://camo.githubusercontent.com/da540d6682016edba670462bca3c6a892fe4a478a31854ad8275a107e352eaa4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616b736861796b68616c65313939322f6d6f64656c2d6e6f7465732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://camo.githubusercontent.com/da540d6682016edba670462bca3c6a892fe4a478a31854ad8275a107e352eaa4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616b736861796b68616c65313939322f6d6f64656c2d6e6f7465732f6261646765732f6275696c642e706e673f623d6d6173746572)

Introduction
------------

[](#introduction)

Model Notes is a simple Laravel Package which can be used to add Notes or Comments against any Laravel Eloquent Model.

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

[](#installation)

You can pull the package using composer. You may use following command to do that.

```
composer require akshaykhale1992/model-note:dev-master

```

Usage
-----

[](#usage)

The Package contains two Traits `notable` and `creatable`. `notable` should be used in the model against which you want to add Notes. E.g. Post, Article, Video etc. `creatable` should be used in the model which is able to create a Note. E.g. User, Admin, Employee etc.

Please Refer following example of simple User and Post Class

#### app/User.php

[](#appuserphp)

```
