From 7c1a90edb5c180f157fef69b2c2b4531f1ed8c1e Mon Sep 17 00:00:00 2001 From: Eduardo Aguad Date: Wed, 11 Oct 2017 16:18:11 -0300 Subject: [PATCH] Support Auto-Discovery --- README.md | 4 ++++ composer.json | 59 ++++++++++++++++++++++++++++++++++----------------- 2 files changed, 43 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 4d32e79..221b7e8 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ If you're not using Laravel, you are done. ### Step 2: Laravel Service Provider +If you're using **Laravel 5.5** this package supports Auto-Discovery. So you can skip this step. + +**For Laravel 5.4 or below** + Append this line to your `providers` array in your `config/app.php` file: ```php diff --git a/composer.json b/composer.json index 529a788..ff872b1 100644 --- a/composer.json +++ b/composer.json @@ -1,24 +1,43 @@ { - "name": "freshwork/chilean-bundle", - "description": "A PHP composer package with Chilean validations, common variables, etc. (RUT, IVA, ETC). Ready for Laravel 4. Grande chile ctm :)", - "authors": [ - { - "name": "Gonzalo De Spirito | Freshwork Studio Chile", - "email": "gonzalo@freshworkstudio.com" - } - ], - "keywords":["chile", "rut", "freshwork", "validation", "tools", "laravel"], - "license":"MIT", - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "codeception/codeception": "^2.1", - "codeception/specify": "^0.4.3" + "name": "freshwork/chilean-bundle", + "description": "A PHP composer package with Chilean validations, common variables, etc. (RUT, IVA, ETC). Ready for Laravel 4. Grande chile ctm :)", + "authors": [ + { + "name": "Gonzalo De Spirito | Freshwork Studio Chile", + "email": "gonzalo@freshworkstudio.com" }, - "autoload": { - "psr-4": { - "Freshwork\\ChileanBundle\\": "src/" - } + { + "name": "Eduardo Aguad", + "email": "eduaguad@gmail.com" + } + ], + "keywords": [ + "chile", + "rut", + "freshwork", + "validation", + "tools", + "laravel" + ], + "license": "MIT", + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "codeception/codeception": "^2.1", + "codeception/specify": "^0.4.3" + }, + "autoload": { + "psr-4": { + "Freshwork\\ChileanBundle\\": "src/" + } + }, + "laravel": { + "providers": [ + "Freshwork\\ChileanBundle\\Laravel\\ChileanBundleServiceProvider" + ], + "aliases": { + "Rut": "Freshwork\\ChileanBundle\\Facades\\Rut" } + } }