src/Providers/ErpnetPermissionsServiceProvider.php
public function boot()
    {
        $app = $this->app;

        $projectRootDir = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR;
//        $routesDir = $projectRootDir."routes".DIRECTORY_SEPARATOR;

//        $configPath = $projectRootDir . 'config/erpnetModels.php';
//        $this->mergeConfigFrom($configPath, 'erpnetModels');

        //Publish Config
        $this->publishes([
            $projectRootDir.'permissions.sh' => base_path('permissions.sh')
        ], 'erpnetPermissions');

        //Bind Interfaces
//        $app->bind($bindInterface, $bindRepository);
//        foreach (config('erpnetMigrates.tables') as $table => $config) {
//            $routePrefix = isset($config['routePrefix'])?$config['routePrefix']:str_singular($table);
//            $bindInterface = '\\ErpNET\\Models\\v1\\Interfaces\\'.(isset($config['bindInterface'])?$config['bindInterface']:(ucfirst($routePrefix).'Repository'));
//            $bindRepository = '\\ErpNET\\Models\\v1\\Repositories\\'.(isset($config['bindRepository'])?$config['bindRepository']:(ucfirst($routePrefix).'RepositoryEloquent'));
//
//            if(interface_exists($bindInterface)  && class_exists($bindRepository)){
//                $app->bind($bindInterface, $bindRepository);
//            }
//        }

        //Routing
//        include $routesDir."api.php";
//        include $routesDir."web.php";

    }
public function boot()
    {
        $app = $this->app;

        $projectRootDir = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR;
//        $routesDir = $projectRootDir."routes".DIRECTORY_SEPARATOR;

//        $configPath = $projectRootDir . 'config/erpnetModels.php';
//        $this->mergeConfigFrom($configPath, 'erpnetModels');

        //Publish Config
        $this->publishes([
            $projectRootDir.'permissions.sh' => base_path('permissions.sh')
        ], 'erpnetPermissions');

        //Bind Interfaces
//        $app->bind($bindInterface, $bindRepository);
//        foreach (config('erpnetMigrates.tables') as $table => $config) {
//            $routePrefix = isset($config['routePrefix'])?$config['routePrefix']:str_singular($table);
//            $bindInterface = '\\ErpNET\\Models\\v1\\Interfaces\\'.(isset($config['bindInterface'])?$config['bindInterface']:(ucfirst($routePrefix).'Repository'));
//            $bindRepository = '\\ErpNET\\Models\\v1\\Repositories\\'.(isset($config['bindRepository'])?$config['bindRepository']:(ucfirst($routePrefix).'RepositoryEloquent'));
//
//            if(interface_exists($bindInterface)  && class_exists($bindRepository)){
//                $app->bind($bindInterface, $bindRepository);
//            }
//        }

        //Routing
//        include $routesDir."api.php";
//        include $routesDir."web.php";

    }
public function boot ( ) { $ app = $ this -> app ; $ projectRootDir = __DIR__ . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR ; //        $routesDir = $projectRootDir."routes".DIRECTORY_SEPARATOR; //        $configPath = $projectRootDir . 'config/erpnetModels.php'; //        $this->mergeConfigFrom($configPath, 'erpnetModels'); //Publish Config $ this -> publishes ( [ $ projectRootDir . 'permissions.sh' => base_path ( 'permissions.sh' ) ] , 'erpnetPermissions' ) ; //Bind Interfaces //        $app->bind($bindInterface, $bindRepository); //        foreach (config('erpnetMigrates.tables') as $table => $config) { //            $routePrefix = isset($config['routePrefix'])?$config['routePrefix']:str_singular($table); //            $bindInterface = '\\ErpNET\\Models\\v1\\Interfaces\\'.(isset($config['bindInterface'])?$config['bindInterface']:(ucfirst($routePrefix).'Repository')); //            $bindRepository = '\\ErpNET\\Models\\v1\\Repositories\\'.(isset($config['bindRepository'])?$config['bindRepository']:(ucfirst($routePrefix).'RepositoryEloquent')); // //            if(interface_exists($bindInterface)  && class_exists($bindRepository)){ //                $app->bind($bindInterface, $bindRepository); //            } //        } //Routing //        include $routesDir."api.php"; //        include $routesDir."web.php"; }
Bootstrap the application services.

@return void
Bootstrap the application services .