Файл: app/Providers/HelpersProvider.php
Строк: 20
<?php
namespace AppProviders;
use IlluminateSupportServiceProvider;
class HelpersProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
if ($handle = opendir(app_path() . '/Helpers/')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != '.' && $entry != '..' && substr($entry, -4, 4) == '.php') {
require_once(app_path() . '/Helpers/' . $entry);
}
}
closedir($handle);
}
}
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
//
}
}