承接 infinety-es/custom-providers 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

infinety-es/custom-providers

Composer 安装命令:

composer require infinety-es/custom-providers

包简介

Load custom Laravel service providers

README 文档

README

Latest Version on Packagist Total Downloads Software License StyleCI

This package allows you to configure the environment certain service providers and aliases are loaded in.

Installation

Via composer:

$ composer require infinety-es/custom-providers

Or add the package to your dependencies in composer.json and run composer update to download the package:

{
    "require": {
        "infinety-es/custom-providers": "^1.0"
    }
}

Next, add the CustomServiceProvider to your providers array in config/app.php:

// config/app.php
'providers' => [
    ...
    Infinety\CustomProviders\CustomServiceProvider::class,
];

Usage

You must publish this package's configuration file for it to work correctly. To do so, run the following command:

$ php artisan vendor:publish --provider="Infinety\CustomProviders\CustomServiceProvider"

After that, you should have see the file config/providers.php.

Environments

In the environments array you can define what environments the provider group should respond to. You may use an asterisk (*) to make that group's providers and aliases load regardless of the application's environment.

Note: You can set your application's environment in either config/app.php under env or via your .env file.

Providers

The providers array is where you can put the providers you want to have loaded in the defined environments. This should be pretty straight forward as it is the same as how you would register service providers in config/app.php.

Aliases

In the aliases array you may put all the aliases (facades) you want to register.

As with the providers, this is the same as how you would register aliases in the default config/app.php configuration file.

Contributing

All contributions (in the form on pull requests, issues and feature-requests) are welcome. See the contributors page for all contributors.

License

MIT License (MIT). Please see the license file for more information.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固