vivek-mistry/facade-maker
最新稳定版本:1.0.0
Composer 安装命令:
composer require vivek-mistry/facade-maker
包简介
Laravel package using for creating a new facade and it's structure.
README 文档
README
Laravel Facade Maker
A Laravel package that helps you to make the Facade & ready the facade structure.
🛠️ Installation
Install the package via Composer:
composer require vivek-mistry/facade-maker
How to generate the Facade?
php artisan app:facade-maker // Ask you for FacadeName and FacadeService // FacadeName : FileUpload // FacadeService : CommonFileUpload
So using above two files created at app/Facades & app/Facades/Services
- FileUpload.php
- CommonFileUpload.php
Register Your Facades in the AppServiceProvider
$this->app->singleton("commonfileupload", function ($app) { return app(CommonFileUpload::class); });
HOW TO USE IN YOUR CONTROLLER?
For example :
class UserController extends Controller { public function index($request) { CommonFileUpload::fileupload($request->file) } }
Testing
composer test
Credits
- Vivek Mistry - Project creator and maintainer
License
MIT License. See LICENSE for details.
统计信息
- 总下载量: 163
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-03
