Looking to hire Laravel developers? Try LaraJobs

laravel-notes maintained by dutchcodingcompany

Description
Laravel model notes.
Last update
2022/02/21 15:07 (dev-master)
License
Links
Downloads
203
Tags

Comments
comments powered by Disqus

Laravel Notes

Installation

You can install the package via composer:

composer require dutchcodingcompany/laravel-notes

Then publish the package migrations, configuration files and resources.

php artisan vendor:publish --provider=DutchCodingCompany\Notes\NoteServiceProvider

Then execute the migrations.

php artisan migrate

Configuration

You may change the note model that is used by changing the table or model in the notes.php config.

'table' => 'notes',

'model' => \App\Models\Note::class,

Usage

Add the HasNotes interface and trait to the model.

use DutchCodingCompany\Notes\Concerns\HasNotes;
use DutchCodingCompany\Notes\Contracts\HasNotes as HasNotesContract;

class Post extends Model implements HasNotesContract
{
    use HasNotes;
    
    // ...
}

Credits

License

The MIT License (MIT). Please see License File for more information.