From f7c689bf3bc7a621c9c481ca5159b5b2bbe076aa Mon Sep 17 00:00:00 2001 From: karneaud Date: Wed, 26 Jun 2024 21:27:20 -0400 Subject: [PATCH] move componetn class to composer provider --- app/Providers/ComposerServiceProvider.php | 5 +++++ composer.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Providers/ComposerServiceProvider.php b/app/Providers/ComposerServiceProvider.php index d548a3d997..300d88f877 100644 --- a/app/Providers/ComposerServiceProvider.php +++ b/app/Providers/ComposerServiceProvider.php @@ -13,6 +13,7 @@ namespace App\Providers; use App\Http\ViewComposers\PortalComposer; use Illuminate\Support\ServiceProvider; +use Illuminate\Support\Facades\Blade; class ComposerServiceProvider extends ServiceProvider { @@ -24,6 +25,9 @@ class ComposerServiceProvider extends ServiceProvider public function boot() { view()->composer('portal.*', PortalComposer::class); + include_once app_path('Http/ViewComposers/RotessaComposer.php'); + include_once app_path("Http/ViewComposers/Components/RotessaComponents.php"); + Blade::componentNamespace('App\\Http\\ViewComposers\\Components', 'rotessa'); } /** @@ -34,5 +38,6 @@ class ComposerServiceProvider extends ServiceProvider public function register() { // + } } diff --git a/composer.json b/composer.json index 70e9c4ab60..73d5cb88a6 100644 --- a/composer.json +++ b/composer.json @@ -132,7 +132,7 @@ "app/Helpers/Generic.php", "app/Helpers/ClientPortal.php" ], - "classmap": ["app/PaymentDrivers/Rotessa/vendor/karneaud/omnipay-rotessa/src/Omnipay/Rotessa/","app/Http/ViewComposers/Components/RotessaComponents.php"] + "classmap": ["app/PaymentDrivers/Rotessa/vendor/karneaud/omnipay-rotessa/src/Omnipay/Rotessa/"] }, "autoload-dev": { "psr-4": {