joaopaulolndev/filament-edit-env
最新稳定版本:v2.0.0
Composer 安装命令:
composer require joaopaulolndev/filament-edit-env
包简介
Package to edit env file
README 文档
README
This is a plugin for FilamentPHP that, through an action, can edit the environment file.
Note
There is a condition in the plugin that prevents it from being used in production!
Installation
You can install the package via composer:
composer require joaopaulolndev/filament-edit-env
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-edit-env-views"
Usage
Add in AdminPanelProvider.php
use Joaopaulolndev\FilamentEditEnv\FilamentEditEnvPlugin; ->plugins([ FilamentEditEnvPlugin::make() ->showButton(fn () => auth()->user()->id === 1) ->setIcon('heroicon-o-cog'), ])
Note
for the code editor field, I am using the plugin Filament Ace Editor
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-23
