From e833b51c06ef41bfeaa01360a70e60e1553d06b0 Mon Sep 17 00:00:00 2001 From: subho biswas Date: Mon, 7 Oct 2024 14:14:17 +0530 Subject: [PATCH] changes regrading installation --- src/Permissions/PermissionServiceProvider.php | 26 ------------------- src/PermissionsServiceProvider.php | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 src/Permissions/PermissionServiceProvider.php create mode 100644 src/PermissionsServiceProvider.php diff --git a/src/Permissions/PermissionServiceProvider.php b/src/Permissions/PermissionServiceProvider.php deleted file mode 100644 index acc706b..0000000 --- a/src/Permissions/PermissionServiceProvider.php +++ /dev/null @@ -1,26 +0,0 @@ -publishes([ - __DIR__ . '/../config/permission.php' => config_path('permission.php'), - __DIR__ . '/../database/migrations/create_permission_tables.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_permission_tables.php'), - ], 'config'); - - // Load migrations - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); - } - - public function register() - { - // Merge configuration - $this->mergeConfigFrom(__DIR__ . '/../config/permission.php', 'permission'); - } -} diff --git a/src/PermissionsServiceProvider.php b/src/PermissionsServiceProvider.php new file mode 100644 index 0000000..ce29f24 --- /dev/null +++ b/src/PermissionsServiceProvider.php @@ -0,0 +1,26 @@ +publishes([ + __DIR__ . '\config\permissions.php' => config_path('permissions.php'), // Note the correct file name + __DIR__ . '\database\migrations\create_permission_tables.php' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_permission_tables.php'), + ], 'config'); + + // Load migrations + $this->loadMigrationsFrom(__DIR__.'\database\migrations'); + } + + public function register() + { + // Merge configuration + $this->mergeConfigFrom(__DIR__ . '\config\permissions.php', 'permissions'); // Ensure this matches the config file + } +}