|
14 | 14 |
|
15 | 15 | use Guanguans\LaravelExceptionNotify\Commands\TestCommand;
|
16 | 16 | use Guanguans\LaravelExceptionNotify\Facades\ExceptionNotify;
|
17 |
| -use Guanguans\LaravelExceptionNotify\Macros\CollectionMacro; |
18 | 17 | use Guanguans\LaravelExceptionNotify\Macros\RequestMacro;
|
19 | 18 | use Guanguans\LaravelExceptionNotify\Macros\StringableMacro;
|
20 | 19 | use Guanguans\LaravelExceptionNotify\Macros\StrMacro;
|
|
23 | 22 | use Illuminate\Contracts\Debug\ExceptionHandler;
|
24 | 23 | use Illuminate\Foundation\Exceptions\Handler;
|
25 | 24 | use Illuminate\Http\Request;
|
26 |
| -use Illuminate\Support\Collection; |
27 | 25 | use Illuminate\Support\ServiceProvider;
|
28 | 26 | use Illuminate\Support\Str;
|
29 | 27 | use Illuminate\Support\Stringable;
|
30 | 28 |
|
31 | 29 | class ExceptionNotifyServiceProvider extends ServiceProvider
|
32 | 30 | {
|
33 | 31 | public array $singletons = [
|
34 |
| - CollectionMacro::class => CollectionMacro::class, |
35 | 32 | RequestMacro::class => RequestMacro::class,
|
36 | 33 | StringableMacro::class => StringableMacro::class,
|
37 | 34 | StrMacro::class => StrMacro::class,
|
@@ -90,7 +87,6 @@ protected function setupConfig(): self
|
90 | 87 | */
|
91 | 88 | protected function registerMacros(): self
|
92 | 89 | {
|
93 |
| - // Collection::mixin($this->app->make(CollectionMacro::class)); |
94 | 90 | Request::mixin($this->app->make(RequestMacro::class));
|
95 | 91 | Str::mixin($this->app->make(StrMacro::class));
|
96 | 92 | Stringable::mixin($this->app->make(StringableMacro::class));
|
|
0 commit comments