esign/laravel-environment-badge
最新稳定版本:1.4.0
Composer 安装命令:
composer require esign/laravel-environment-badge
包简介
Display a warning badge for certain app environments
README 文档
README
Display a badge for testing or staging environments. This package is Esign-branded, feel free to fork and change it to fit your own needs.
Installation
You can install the package via composer:
composer require esign/laravel-environment-badge
The package will automatically register a service provider.
Next up, you can optionally publish the configuration and language files:
php artisan vendor:publish --provider="Esign\EnvironmentBadge\EnvironmentBadgeServiceProvider" --tag="config" php artisan vendor:publish --provider="Esign\EnvironmentBadge\EnvironmentBadgeServiceProvider" --tag="lang"
Usage
To display the environment badge you may use the view component that ships with this package:
<x-environment-badge />
To enable this badge for certain environments you may set the ENVIRONMENT_BADGE_ENABLED environment variable to true:
ENVIRONMENT_BADGE_ENABLED=true
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 4.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-06