mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
32 lines
582 B
PHP
32 lines
582 B
PHP
|
<?php namespace App\Providers;
|
||
|
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
||
|
class MacroServiceProvider extends ServiceProvider {
|
||
|
|
||
|
/**
|
||
|
* Bootstrap the application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
// require base_path() . '/resources/macros/community_types.php';
|
||
|
foreach(glob(base_path('resources/macros/*.php')) as $filename) {
|
||
|
require_once($filename);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Register any application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
|
||
|
}
|