Skip to content

Instantly share code, notes, and snippets.

@coolcodemy
Created October 6, 2016 14:39
Show Gist options
  • Select an option

  • Save coolcodemy/f1fe4f6e109dd5fee0c01b0eb3237d74 to your computer and use it in GitHub Desktop.

Select an option

Save coolcodemy/f1fe4f6e109dd5fee0c01b0eb3237d74 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class HelperServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
foreach (glob(app_path() . '/Helpers/*.php') as $filename) {
require_once $filename;
}
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment