Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/inventory.corals.io/Corals/modules/Inventory/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/inventory.corals.io/Corals/modules/Inventory/InventoryServiceProvider.php
<?php

namespace Corals\Modules\Inventory;

use Corals\Modules\Inventory\Facades\Cheque;
use Corals\Modules\Inventory\Facades\Supplier;
use Corals\Modules\Inventory\Facades\Customer;
use Corals\Modules\Inventory\Facades\Dashboard;
use Corals\Modules\Inventory\Facades\Inventory;
use Corals\Modules\Inventory\Providers\InventoryAuthServiceProvider;
use Corals\Modules\Inventory\Providers\InventoryObserverServiceProvider;
use Corals\Modules\Inventory\Providers\InventoryRouteServiceProvider;
use Corals\Modules\Utility\Facades\Utility;
use Corals\Settings\Facades\Settings;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;

class InventoryServiceProvider extends ServiceProvider
{
    protected $defer = true;

    /**
     * Bootstrap the application events.
     *
     * @return void
     */

    public function boot()
    {
        // Load view
        $this->loadViewsFrom(__DIR__ . '/resources/views', 'Inventory');

        // Load translation
        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'Inventory');

        // Load migrations
//        $this->loadMigrationsFrom(__DIR__ . '/database/migrations');

        $this->registerCustomFieldsModels();
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/config/inventory.php', 'inventory');

        $this->app->register(InventoryRouteServiceProvider::class);
        $this->app->register(InventoryAuthServiceProvider::class);
        $this->app->register(InventoryObserverServiceProvider::class);

        $this->app->booted(function () {
            $loader = AliasLoader::getInstance();
            $loader->alias('Inventory', Inventory::class);
            $loader->alias('CustomerFacade', Customer::class);
            $loader->alias('DashboardFacade',Dashboard::class);
            $loader->alias('SupplierFacade',Supplier::class);
            $loader->alias('ChequeFacade',Cheque::class);


        });

        Utility::addToUtilityModules('Inventory');
    }

    protected function registerCustomFieldsModels()
    {
        Settings::addCustomFieldModel(Inventory::class);
    }
}

Spamworldpro Mini