omatech / laravel-env-corner-component
0.10.0
2020-02-17 14:46 UTC
Requires
- laravel/framework: 5.8.*
This package is auto-updated.
Last update: 2024-10-18 00:38:23 UTC
README
Do you have the classic client that confuses the production environment with the testing environment? This simple package is your solution! This prints a banner in the lower right corner to remember the current environment.
Installation
- Require the package in your composer.json.
composer require omatech/laravel-env-corner-component
- Publish config and components files.
php artisan vendor:publish
Omatech\EnvCornerComponent\App\Providers\PublishServiceProvider
- Include the component in your layout before
</body>
tag.
@include('components.vendor.corner')
Extras
- Configure in which environments you have to show the banner in the configuration file:
/config/env-corner-component.php
return [
'enabled' => true,
'renderWhen' => [
'test', 'preprod', 'preproduction'
]
];
-
Disable the component by setting the option
enabled
tofalse
. -
Customize the banner by modifying the component:
views/components/vendor/corner.blade.php
Credits
Organization
Contributors
See the contributors list here.