Download the PHP package alphaolomi/laravel-notes without Composer
On this page you can find all versions of the php package alphaolomi/laravel-notes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alphaolomi/laravel-notes
More information about alphaolomi/laravel-notes
Files in alphaolomi/laravel-notes
Package laravel-notes
Short Description Add Notes to your models for Laravel.
License MIT
Homepage https://github.com/alphaolomi/laravel-notes
Informations about the package laravel-notes
A minimal notes package for Laravel.
Add Notes to your models in your Laravel Applications.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Start by using the AlphaOlomi\Notes\Concerns\HasNotes
trait on your model.
This trait adds a notes(): MorphMany
relationship on your model. It also adds a new Note()
method that can be used to quickly add a Note to your model.
By default, the package will use the authenticated user's ID as the "Noter". You can customize this by providing a custom User
to the Note()
method.
The package also supports parent -> children
relationships for notes. This means that a Note can belongTo
another Note.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Alpha Olomi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-notes with dependencies
illuminate/contracts Version ^9.0
illuminate/database Version ^9.0
spatie/laravel-package-tools Version ^1.9.2