facade please
ve this
有时您想为全球访问方法创建一个外墙,但是您不喜欢这样做,因为您必须采取几步。立面!是解决您的问题的Laravel软件包,只有一个命令,您的外墙就可以使用了!
composer require nauvalazhar/facade-please
添加到config/app.php
'providers' => [
...
NauvalazharFacadePleaseFacadePleaseServiceProvider::class,
php artisan facade usage
php artisan facade:please YourFacade
默认情况下,生成的外墙将存储在app/MyFacades文件夹中,但是您可以更改config/facadeplease.php文件中的目标文件夹。在此之前,您需要执行此步骤。
php artisan facade:delete YourFacade
php artisan facade:list
php artisan facade:diag YourFacade [--methods] [--public] [--private]
php artisan vendor:publish --tag=facadeplease
0.2.0 - Hope you love this
-----
New
---
- Optional argument for command: php artisan facade
- Automatically adds a comma at the end of the provider array element and aliases array in `config/app.php`
- Added a new command to list all facades
- Added a new command to diagnose the facade
- Added new command for usage
Changes
-------
- Add 'require' in composer.json
- Some changes to the 'php artisan facade' command
- Some changes to the 'php artisan facade:delete' command
0.1.1 - Initial release
-----
Fix
---
- fix Composer.json
0.1.0 - First release (Don't use this)
- First commit
感谢@rizalio的任何帮助!
麻省理工学院许可证