/**
  * Bootstrap the application services.
  *
  * @param PermissionRegistrar $permissionLoader
  */
 public function boot(PermissionRegistrar $permissionLoader)
 {
     if (!class_exists('CreatePermissionTables')) {
         // Publish the migration
         $timestamp = date('Y_m_d_His', time());
         $this->publishes([__DIR__ . '/../resources/migrations/create_permission_tables.php.stub' => $this->app->basePath() . '/' . 'database/migrations/' . $timestamp . '_create_permission_tables.php'], 'migrations');
     }
     $permissionLoader->registerPermissions();
 }
 /**
  * Bootstrap the application services.
  *
  * @param PermissionRegistrar $permissionLoader
  */
 public function boot(PermissionRegistrar $permissionLoader)
 {
     $this->publishes([__DIR__ . '/../resources/config/laravel-permission.php' => $this->app->configPath() . '/' . 'laravel-permission.php'], 'config');
     if (!class_exists('CreatePermissionTables')) {
         // Publish the migration
         $timestamp = date('Y_m_d_His', time());
         $this->publishes([__DIR__ . '/../resources/migrations/create_permission_tables.php.stub' => $this->app->databasePath() . '/migrations/' . $timestamp . '_create_permission_tables.php'], 'migrations');
     }
     $this->mergeConfigFrom(__DIR__ . '/../resources/config/laravel-permission.php', 'laravel-permission');
     $this->registerModelBindings();
     $permissionLoader->registerPermissions();
 }