Skip to content

Commit

Permalink
Use canonicalized absolute pathnames for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Omranic committed Jun 30, 2023
1 parent 3b118b6 commit 34972e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Providers/CategoriesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public function register()
public function boot()
{
// Register paths to be published by the publish command.
$this->publishConfigFrom(__DIR__.'/../../config/config.php', 'rinvex/categories');
$this->publishMigrationsFrom(__DIR__.'/../../database/migrations', 'rinvex/categories');
$this->publishConfigFrom(realpath(__DIR__.'/../../config/config.php'), 'rinvex/categories');
$this->publishMigrationsFrom(realpath(__DIR__.'/../../database/migrations'), 'rinvex/categories');

! $this->app['config']['rinvex.categories.autoload_migrations'] || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
! $this->app['config']['rinvex.categories.autoload_migrations'] || $this->loadMigrationsFrom(realpath(__DIR__.'/../../database/migrations'));

// Map relations
Relation::morphMap([
Expand Down

0 comments on commit 34972e5

Please sign in to comment.