Skip to content

Commit

Permalink
[Laracrumbs] Fixed link issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdrago committed Jun 11, 2018
1 parent d8cbc97 commit de68114
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public function boot()
$this->publishes([$publicPath => public_path("vendor/{$this->packageKey}")], 'public');
$this->publishes([$configPath => config_path("{$this->packageKey}.php")], 'config');

// merge configuration values
$this->mergeConfigFrom($configPath, $this->packageKey);

// register the laracrumbs
$this->registerLaracrumbs();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Services/RouteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class RouteService
*/
public static function getLink($route)
{
return route(
return url(route(
$route->getName(),
$route->parameters(),
config('laracrumbs.absolute_paths')
);
));
}

/**
Expand Down

0 comments on commit de68114

Please sign in to comment.