1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

move componetn class to composer provider

This commit is contained in:
karneaud 2024-06-26 21:27:20 -04:00
parent ac1c5ac005
commit f7c689bf3b
2 changed files with 6 additions and 1 deletions

View File

@ -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()
{
//
}
}

View File

@ -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": {