onicial / bulmify
此包已被废弃,不再维护。作者建议使用 onicial/laravel-bulma-notifications 包。
使用 Bulma.css 创建的 Laravel 通知包
1.1.2
2019-04-19 09:53 UTC
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 CSS。您可以通过 npm 或者下载并使用正确路径,或者使用 CDN 链接 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css"/>
安装
通过 Composer
$ composer require onicial/laravel-bulma-notifications
配置
使用以下命令将资源发布到 vendor
php artisan vendor:publish --tag=laravel-bulma-notifications --force
& 在您的代码布局中包含 bulma 视图文件
@include('bulma::notifications')
使用方法
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');
外观
Cookie 盒
您甚至可以使用 laravel-bulma-notifications 添加 Cookie 盒。下面是它的样子
// config/laravel-bulma-notifications.php show_acceptance_box => true
有关按钮和背景类选项,请参阅 bulma 文档
Cookie 盒的外观
如果我想更改颜色呢?
变更日志
请参阅 CHANGELOG 以获取有关最近更改的更多信息。
测试
$ composer test
贡献
请参阅 CONTRIBUTING 和 CONDUCT 以获取详细信息。
安全
如果您发现任何与安全相关的问题,请通过电子邮件 mhetreramesh@gmail.com 而不是使用问题跟踪器。