Skip to content

Commit

Permalink
Files moved
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 10, 2021
1 parent 1570cb4 commit a971491
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/Providers/ModuleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ public function boot()
$modules = $this->app['config']['typicms']['modules'];
$this->app['config']->set('typicms.modules', array_merge(['roles' => []], $modules));

$this->loadViewsFrom(__DIR__.'/../resources/views/', 'roles');
$this->loadViewsFrom(__DIR__.'/../../resources/views/', 'roles');

$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/roles'),
__DIR__.'/../../resources/views' => resource_path('views/vendor/roles'),
], 'views');

$this->publishes([
__DIR__.'/../database/seeders/RoleSeeder.php' => database_path('seeders/RoleSeeder.php'),
__DIR__.'/../database/seeders/PermissionSeeder.php' => database_path('seeders/PermissionSeeder.php'),
__DIR__.'/../database/seeders/PermissionRoleSeeder.php' => database_path('seeders/PermissionRoleSeeder.php'),
__DIR__.'/../../database/seeders/RoleSeeder.php' => database_path('seeders/RoleSeeder.php'),
__DIR__.'/../../database/seeders/PermissionSeeder.php' => database_path('seeders/PermissionSeeder.php'),
__DIR__.'/../../database/seeders/PermissionRoleSeeder.php' => database_path('seeders/PermissionRoleSeeder.php'),
], 'seeders');

AliasLoader::getInstance()->alias('Roles', Roles::class);
Expand Down

0 comments on commit a971491

Please sign in to comment.