mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
do not need these files
This commit is contained in:
parent
59ae2be01e
commit
55e644f214
@ -1,16 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Support\Facades\View;
|
|
||||||
use App\DataProviders\CAProvinces;
|
|
||||||
use App\DataProviders\USStates;
|
|
||||||
|
|
||||||
View::composer(['*.rotessa.components.address','*.rotessa.components.banks.US.bank','*.rotessa.components.dropdowns.country.US'], function ($view) {
|
|
||||||
$states = USStates::get();
|
|
||||||
$view->with('states', $states);
|
|
||||||
});
|
|
||||||
|
|
||||||
// CAProvinces View Composer
|
|
||||||
View::composer(['*.rotessa.components.address','*.rotessa.components.banks.CA.bank','*.rotessa.components.dropdowns.country.CA'], function ($view) {
|
|
||||||
$provinces = CAProvinces::get();
|
|
||||||
$view->with('provinces', $provinces);
|
|
||||||
});
|
|
@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Providers;
|
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Blade;
|
|
||||||
use Illuminate\Support\ServiceProvider as BaseProvider;
|
|
||||||
|
|
||||||
class RotessaServiceProvider extends BaseProvider
|
|
||||||
{
|
|
||||||
protected string $moduleName = 'Rotessa';
|
|
||||||
|
|
||||||
protected string $moduleNameLower = 'rotessa';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Boot the application events.
|
|
||||||
*/
|
|
||||||
public function boot(): void
|
|
||||||
{
|
|
||||||
include_once app_path('Http/ViewComposers/RotessaComposer.php');
|
|
||||||
|
|
||||||
$this->registerComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register views.
|
|
||||||
*/
|
|
||||||
public function registerComponent(): void
|
|
||||||
{
|
|
||||||
Blade::componentNamespace('App\\Http\\ViewComposers\\Components', $this->moduleNameLower);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user