onicial/bulmify

This package is abandoned and no longer maintained. The author suggests using the onicial/laravel-bulma-notifications package instead.

A Laravel notification package created with Bulma.css

1.1.2 2019-04-19 09:53 UTC

README

Author Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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?

Bulma Notifications

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?

Bulma Cookie Box

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.

Credits