tomatophp / filament-notes
Add Sticky Notes to your FilamentPHP dashboard with tons of options and style
Fund package maintenance!
Requires
- php: ^8.2
- filament/filament: ^5.0
- tomatophp/console-helpers: ^1.1
- tomatophp/filament-icons: ^5.0
- tomatophp/filament-types: ^5.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.24
- nunomaduro/collision: ^8.6
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0|^5.0
- pestphp/pest-plugin-arch: ^4.0|^5.0
- pestphp/pest-plugin-laravel: ^4.0|^5.0
- pestphp/pest-plugin-livewire: ^4.0|^5.0
- pestphp/pest-plugin-type-coverage: ^4.0|^5.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Filament Sticky Notes
Add Sticky Notes to your FilamentPHP dashboard with tons of options and style
Screenshots
Features
- Notes Resource
- Notes Style
- Pined Notes
- Notes Background
- Notes Font Color
- Notes Border Color
- Notes Font Widget
- Notes Widget
- Notes Widget Limit
- Public/Private Notes
- Notes Groups
- Notes Status
- Notes To Notifications
- Share Notes With Public Link
- Share Notes With Selected User
- Notes CheckLists
- Notes Reminders
- Notes Font Family
- Attach Notes To Models
- Notes Templates
Compatibility
| Package version | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 5.x | 12.x / 13.x | 8.2+ |
1.x (v3 branch) |
3.x | 10.x / 11.x | 8.1+ |
Installation
composer require tomatophp/filament-notes
after install your package please run this command
php artisan filament-notes:install
Finally register the plugin on /app/Providers/Filament/AdminPanelProvider.php
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make())
Notes are linked to your user model, you can change it from the config file filament-notes.models.user (default App\Models\User).
Use Widget
you can use it as a resource or you can use it as a widget by just register a widget on your panel provider like this
$panel->widgets([ \TomatoPHP\FilamentNotes\Filament\Widgets\NotesWidget::class ])
the widget shows the pinned notes the current user can see, you can change how many notes it shows
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->widgetLimit(8) )
Use Livewire Component
you can use selected note anywhere using livewire component
<livewire:note-action :note="$note" />
Use Groups & Status
groups and status are stored with filament-types (installed with this package), you can use this feature by add this methods to the plugin
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->useStatus() ->useGroups() )
the default groups (todo, ideas, saved) and statuses (pending, processing, done) are created the first time you open the Notes Groups / Notes Status pages from the notes page header.
Use Convert Note To Notification
you can send a note as a Filament database notification to selected users by adding this method to the plugin (your panel needs ->databaseNotifications() and the notifications table)
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->useNotification() )
Use Share Note With Public Link
you can generate a public link and share it with others by allowing this feature on your provider
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->useShareLink() )
Use User Access Permissions
you can use this feature to allow only selected users to access the notes by allowing this feature on your provider
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->useUserAccess() )
Use Checklist
you can use this feature to add a checklist to your notes by allowing this feature on your provider
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->useCheckList() )
Customize Note Resource Icon
you can customize the note resource icon by adding this method to the plugin
$panel->plugin(\TomatoPHP\FilamentNotes\FilamentNotesPlugin::make() ->navigationIcon('heroicon-o-presentation-chart-line') )
Publish Assets
you can publish config file by use this command
php artisan vendor:publish --tag="filament-notes-config"
you can publish views file by use this command
php artisan vendor:publish --tag="filament-notes-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="filament-notes-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="filament-notes-migrations"
Testing
composer test
Code Style
composer format
PHPStan
composer analyse
Other Filament Packages
Checkout our Awesome TomatoPHP








