定制 eelcol/laravel-make-facade 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

eelcol/laravel-make-facade

最新稳定版本:1.0.1

Composer 安装命令:

composer require eelcol/laravel-make-facade

包简介

Adds make:facade command to Laravel Artisan

README 文档

README

Facades can be extremely helpful in Laravel. This package adds a simple command to the CLI to add an easy way to create a new facade.

Example

Use the following command to create a new facade:

php artisan make:facade NameOfFacade

This command creates a file in the folder app/Facades. It also creates a new FacadeServiceProvider.php file and updates this file everytime a new Facade is created.

After creating the first facade, this FacadeServiceProvider should be added to the providers array in config/app.php.

If you want to create a facade called 'Facebook', run the following command:

php artisan make:facade Facebook

This command will perform the following tasks:

  • create the file app/Facades/Facebook.php
  • create the file app/Providers/FacadeServiceProvider.php if this file does not exists yet
  • adds an entry to the FacadeServiceProvider for this facade

You still have to add the FacadeServiceProvider to config/app.php and check if the facade returns the correct class.

Installation

Require this package with composer.

composer require eelcol/laravel-make-facade

Laravel 5.5 and up uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Eelcol\LaravelMakeFacade\MakeFacadeServiceProvider::class,

统计信息

  • 总下载量: 5.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固