Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
just a couple more tweaks
  • Loading branch information
browner12 committed Feb 23, 2016
1 parent 9fa6ffb commit 1c668dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ php artisan vendor:publish --provider="browner12\helpers\HelperServiceProvider"

## Usage

This package comes with some built in helpers that you can choose to use or not. By default all of these helpers are inactive for your application. To adjust which helpers are active and which are inactive, open `config/helpers.php` and find the `active_helpers` option. Check the source code to see what functions are included in each helper and what each does.
This package comes with some built in helpers that you can choose to use or not. By default all of these helpers are inactive for your application. To adjust which helpers are active and which are inactive, open `config/helpers.php` and find the `active_helpers` option. Add any helpers you wish to activate to this key. Check the source code to see what functions are included in each helper and what each does.

You can also create your own custom helpers for inclusion in your application. An Artisan generator helps you quickly make new helpers for your application.

``` sh
php artisan make:helper MyHelper
```

Your custom helper will be placed in `App/Helpers`, unless you override the default directory in your configuration.
Your custom helper will be placed in `app/Helpers`, unless you override the default directory in your configuration.

By default, the service provider uses the `glob` function to automatically require any PHP files in the 'Helpers' directory. If you prefer a mapper based approach, you may edit the `custom_helpers` in the configuration file, and include the file name of any helpers in your custom directory you wish to activate. Within the helper, define your own custom helpers that will be available throughout your application.
By default, the service provider uses the `glob` function to automatically require any PHP files in the 'Helpers' directory. If you prefer a mapper based approach, you may edit the `custom_helpers` in the configuration file, and include the file name of any helpers in your custom directory you wish to activate. Within the new helper, define your own custom functions that will be available throughout your application.

``` php
if (!function_exists('hello')) {
Expand Down

0 comments on commit 1c668dc

Please sign in to comment.