Skip to content

Commit

Permalink
Refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
Abraham Udele authored and Abraham Udele committed May 23, 2021
1 parent 71b3117 commit 61e21d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/KeyManagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function register()
public function boot()
{
//Loads Package Migration
$this->loadMigrationsFrom(__DIR__ . '/database/migrations');
$this->loadMigrationsFrom(__DIR__.'/database/migrations');

//Register Package Middleware
$router = $this->app->make(Router::class);
Expand All @@ -54,14 +54,14 @@ public function boot()

//Publishes Package Config
$this->publishes([
__DIR__ . '/config/keymanager.php' => config_path('keymanager.php'),
__DIR__.'/config/keymanager.php' => config_path('keymanager.php'),
], 'config');

//Publishes Migrations
if (!class_exists('CreateKeyClientsTable') && !class_exists('CreateKeyApiCredentialsTable')) {
if (! class_exists('CreateKeyClientsTable') && ! class_exists('CreateKeyApiCredentialsTable')) {
$this->publishes([
__DIR__ . '/database/migrations/2020_12_19_075709_create_key_clients_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '1' . '_create_key_clients_table.php'),
__DIR__ . '/database/migrations/2020_12_19_075855_create_key_api_credentials_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '2' . '_create_key_api_credentials_table.php'),
__DIR__.'/database/migrations/2020_12_19_075709_create_key_clients_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'1'.'_create_key_clients_table.php'),
__DIR__.'/database/migrations/2020_12_19_075855_create_key_api_credentials_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'2'.'_create_key_api_credentials_table.php'),
], 'migrations');
}

Expand Down

0 comments on commit 61e21d0

Please sign in to comment.