onicial / bulmify
A Laravel notification package created with Bulma.css
Requires
- php: >=5.6
Requires (Dev)
- phpunit/php-code-coverage: *
- phpunit/phpunit: ~7.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2020-10-14 12:49:46 UTC
README
Bulma notifications for Laravel
You have to add bulma css on your project first. You can do that either by npm or download & use right path or use CDN link <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css"/>
Install
Via Composer
$ composer require onicial/laravel-bulma-notifications
Configure
Publish assets to vendor using below command
php artisan vendor:publish --tag=laravel-bulma-notifications --force
& include bulma view file in your code layout
@include('bulma::notifications')
Usage
notify()->success('Thank you!', 'Your message goes here')->autoClose(2000); notify()->info('Thank you!', 'Your message goes here'); notify()->warning('Thank you!', 'Your message goes here'); notify()->error('Thank you!', 'Your message goes here'); or notify('Thank you', '', 'success')->autoClose(2000); notify('Thank you', '', 'info'); notify('Thank you', '', 'warning'); notify('Thank you', '', 'error');
How it will look?
Cookie box
You can even add cookie box with laravel-bulma-notifications. Here is how it is:
// config/laravel-bulma-notifications.php show_acceptance_box => true
For button & background class options refer bulma doc
How cookie box will look?
What if I wants to change the colors?
Here is how it is mentioned on bulma website.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email mhetreramesh@gmail.com instead of using the issue tracker.