Skip to content

Commit

Permalink
changes regrading installation
Browse files Browse the repository at this point in the history
  • Loading branch information
subhobiswas committed Oct 7, 2024
1 parent 0b44bbc commit e833b51
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/Permissions/PermissionServiceProvider.php

This file was deleted.

26 changes: 26 additions & 0 deletions src/PermissionsServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Lazycode\Permissions;

use Illuminate\Support\ServiceProvider;

class PermissionsServiceProvider extends ServiceProvider
{
public function boot()
{
// Publish the configuration and migration files
$this->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
}
}

0 comments on commit e833b51

Please sign in to comment.