Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
| ComposerServiceProvider | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
3 / 3 |
| boot | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| register | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| namespace Mtc\Shop\Providers; | |
| use Illuminate\Support\Facades\View; | |
| use Illuminate\Support\ServiceProvider; | |
| use Mtc\Shop\Http\ViewComposers\ProductComposer; | |
| class ComposerServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Register any events for your application. | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| View::composer('shop::admin.product.form', ProductComposer::class); | |
| } | |
| /** | |
| * Register the service provider. | |
| * | |
| * @return void | |
| */ | |
| public function register() | |
| { | |
| // | |
| } | |
| } |