Skip to content

Commit

Permalink
Fix config guard loading
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgilles committed Aug 7, 2024
1 parent 39618f2 commit 96bb416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LaravelLinkableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Linkable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 96bb416

Please sign in to comment.