Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 4 |
| HelperServiceProvider | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 4 |
| register | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
|||
| boot | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * Provider to Load Helpers, without at the code in App provider. | |
| * To just make custom helpers clear, and seperated from the project code | |
| */ | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class HelperServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register services. | |
| * | |
| * @return void | |
| */ | |
| public function register() | |
| { | |
| foreach (glob(app_path().'/Helpers/*.php') as $filename){ | |
| require_once($filename); | |
| } | |
| } | |
| /** | |
| * Bootstrap services. | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| // | |
| } | |
| } |