Skip to content

Commit b2b647b

Browse files
committed
config file name
1 parent 4dab108 commit b2b647b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

src/Console/Commands/CreateApiToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function handle(): void
1919
$expires = $this->option('expires') ? now()->addMinutes((int) $this->option('expires')) : null;
2020

2121
// Retrieve the token length from the configuration
22-
$tokenLength = is_numeric(Config::get('laravel-token-auth.token_length')) ? (int) Config::get('laravel-token-auth.token_length') : 60; // Default to 60 if not set
22+
$tokenLength = is_numeric(Config::get('token-auth.token_length')) ? (int) Config::get('token-auth.token_length') : 60; // Default to 60 if not set
2323

2424
$token = ApiToken::create([
2525
'name' => $name,

src/LaravelTokenAuthServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LaravelTokenAuthServiceProvider extends ServiceProvider
1313
{
1414
public function register(): void
1515
{
16-
$this->mergeConfigFrom(__DIR__.'/../config/laravel-token-auth.php', 'laravel-token-auth');
16+
$this->mergeConfigFrom(__DIR__.'/../config/token-auth.php', 'token-auth');
1717
}
1818

1919
public function boot(): void
@@ -29,7 +29,7 @@ protected function offerPublishing(): void
2929
{
3030
if ($this->app->runningInConsole()) {
3131
$this->publishes([
32-
__DIR__.'/../config/laravel-token-auth.php' => config_path('laravel-token-auth.php'),
32+
__DIR__.'/../config/token-auth.php' => config_path('token-auth.php'),
3333
], 'config');
3434

3535
$this->publishes([

0 commit comments

Comments
 (0)