dutchcodingcompany / laravel-notes
Laravel model notes.
Installs: 203
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/dutchcodingcompany/laravel-notes
Requires
- php: >=7.4.0
- laravel/framework: ^6.0|^7.0|^8.0|^9.0
This package is auto-updated.
Last update: 2025-09-21 22:22:03 UTC
README
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.