php-notify / notify-laravel-toastr
This package is abandoned and no longer maintained.
The author suggests using the php-flasher/flasher-toastr-laravel package instead.
Leverage Toastr for stylish toast notifications in Laravel with PHPFlasher. Add Toastr's sleek notifications to your Laravel projects effortlessly.
Package info
github.com/php-flasher/flasher-toastr-laravel
pkg:composer/php-notify/notify-laravel-toastr
Fund package maintenance!
v2.5.0
2026-03-07 18:31 UTC
Requires
- php: >=8.2
- php-flasher/flasher-laravel: ^2.5.0
- php-flasher/flasher-toastr: ^2.5.0
- 2.x-dev
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.6
- v2.1.5
- v2.1.4.x-dev
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.15.14
- v1.15.13
- v1.15.12
- v1.15.11
- v1.15.10
- v1.15.9
- v1.15.8
- v1.15.7
- v1.15.6
- v1.15.5
- v1.15.4
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.17
- v0.4.16
- v0.4.15
- v0.4.14
- v0.4.13
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-main
- dev-dependabot/add-v2-config-file
This package is auto-updated.
Last update: 2026-03-07 19:24:05 UTC
README
Laravel adapter for PHPFlasher Toastr. Seamlessly integrate Toastr notifications into Laravel applications.
Requirements
- PHP >= 8.2
- Laravel >= 11.0
- php-flasher/flasher-laravel ^2.4.0
- php-flasher/flasher-toastr ^2.4.0
Installation
composer require php-flasher/flasher-toastr-laravel
Quick Start
// Global helper toastr()->success('Operation completed successfully!'); toastr()->error('An error occurred.'); toastr()->info('Information message.'); toastr()->warning('Warning message.'); // In controller public function save(Request $request) { // Your logic... toastr()->success('Changes saved!'); return redirect()->back(); } // With options toastr()->success('Success message', [ 'timeOut' => 5000, 'positionClass' => 'toast-top-right', ]);
Features
- Laravel Facade:
toastr()global helper - Dependency Injection:
ToastrFactorytype-hinted injection - Laravel Integration: Auto-injects assets in Blade templates
- Flash Bag: Converts Laravel flash messages to Toastr notifications
Configuration
Publish configuration:
php artisan flasher:install --config
Add to config/flasher.php:
return [ 'plugins' => [ 'toastr' => [ 'options' => [ 'timeOut' => 5000, 'progressBar' => true, 'positionClass' => 'toast-top-right', ], ], ], ];
Documentation
Complete documentation: php-flasher.io