Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
4 / 4 |
| HelperServiceProvider | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
3 | |
100.00% |
4 / 4 |
| register | |
100.00% |
1 / 1 |
2 | |
100.00% |
3 / 3 |
|||
| boot | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 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() | |
| { | |
| // | |
| } | |
| } |