From 96bb4166b2aa98af4bf819c60250cb04c2fa91dd Mon Sep 17 00:00:00 2001 From: Gilles Felix Date: Wed, 7 Aug 2024 16:13:17 +0200 Subject: [PATCH] Fix config guard loading --- src/LaravelLinkableServiceProvider.php | 2 +- src/Traits/Linkable.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LaravelLinkableServiceProvider.php b/src/LaravelLinkableServiceProvider.php index b9d8e21..1fe1b4e 100644 --- a/src/LaravelLinkableServiceProvider.php +++ b/src/LaravelLinkableServiceProvider.php @@ -12,7 +12,7 @@ class LaravelLinkableServiceProvider extends ServiceProvider { public function boot(): void { - $this->publishes([__DIR__.'/../config' => config_path('laravel-linkable.php')]); + $this->publishes([__DIR__.'/../config/laravel-linkable.php' => config_path('laravel-linkable.php')], 'config'); $this->loadTranslationsFrom(__DIR__.'/../lang', 'laravel-linkable'); $this->publishes([__DIR__.'/../lang' => lang_path('vendor/laravel-linkable')], 'lang'); diff --git a/src/Traits/Linkable.php b/src/Traits/Linkable.php index 5e9f78c..dc7450f 100644 --- a/src/Traits/Linkable.php +++ b/src/Traits/Linkable.php @@ -66,7 +66,7 @@ public function resolveRouteBinding($value, $field = null): ?Model return $this->resolveRouteBindingQuery($this, $value, $field)->first(); } - $guard = config('laravel-nova-page-manager.guard_preview'); + $guard = config('laravel-linkable.guard_preview'); /** @var Model|Builder $query */ $query = $this->newQuery(); if ($this->linkableConfig()->resolveQuery) {