2017 © Pedro Peláez
 

library custom-providers

Load custom Laravel service providers

image

infinety-es/custom-providers

Load custom Laravel service providers

  • Thursday, June 9, 2016
  • by Krato1
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel 5 Custom Providers

Latest Version on Packagist Total Downloads ![Software License][ico-license] StyleCI, (*1)

This package allows you to configure the environment certain service providers and aliases are loaded in., (*2)

Installation

Via composer:, (*3)

$ composer require infinety-es/custom-providers

Or add the package to your dependencies in composer.json and run composer update to download the package:, (*4)

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

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

// 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:, (*6)

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

After that, you should have see the file config/providers.php., (*7)

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., (*8)

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

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., (*10)

Aliases

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

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

Contributing

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

License

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

The Versions

09/06 2016

dev-master

9999999-dev

Load custom Laravel service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel file provider serviceprovider

09/06 2016

1.0

1.0.0.0

Load custom Laravel service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel file provider serviceprovider

09/06 2016

dev-analysis-qg6DgG

dev-analysis-qg6DgG

Load custom Laravel service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel file provider serviceprovider