Package Data | |
---|---|
Maintainer Username: | samueljtaylor |
Maintainer Contact: | sam@taylornetwork.ca (Sam Taylor) |
Package Create Date: | 2016-11-17 |
Package Last Update: | 2018-10-23 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-09 15:12:52 |
Package Statistics | |
---|---|
Total Downloads: | 67 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A collection of useful helper functions for Laravel. Also will include user created helper functions.
Via Composer
$ composer require taylornetwork/laravel-helpers
Laravel should automatically discover the package service provider. If that doesn't work for some reason, follow the Manual Setup.
Only use these steps if Laravel does not auto discover the service provider.
Add the service provider to the providers array in your config/app.php
'providers' => [
TaylorNetwork\LaravelHelpers\LaravelHelpersServiceProvider::class,
];
$ php artisan vendor:publish
This adds laravel_helpers.php
to your config
directory
Click on any of the links to see the helper documentation
To create a helper function
$ php artisan make:helper HelperName
Will create an app/Helpers
directory and add HelperName.php
// app/Helpers/HelperName.php
if(!function_exists('HelperName'))
{
/**
* HelperName
*/
function HelperName ()
{
// Code
}
}
This will automatically be included and you can call HelperName()
anywhere in your code.
By default TaylorNetwork\LaravelHelpers\LaravelHelpersServiceProvider
will include all helpers included with this package and all helpers found in app\Helpers
. You can change this in config/laravel_helpers.php
The MIT License (MIT). Please see License File for more information.