Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Commit 23f6630

Browse files
authored
Merge pull request #226 from mateusjunges/fix-provider
FIx paths on ACLServiceProvider.php
2 parents b7df37f + 4c23af3 commit 23f6630

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
All notable changes to `mateusjunges/laravel-acl` will be documented in this file.
4+
# 3.0.1
5+
- Fix paths on `ACLServiceProvider`
6+
47
# 3.0.0
58
- Move namespace `Junges\ACL\Traits` to `Junges\ACL\Concerns`
69
- Move namespace `Junges\ACL\Http\Models` to `Junges\ACL\Models`

src/Providers/ACLServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public function boot(Dispatcher $events, Repository $config, Factory $view)
5454
*/
5555
public function loadViews()
5656
{
57-
$this->loadViewsFrom(__DIR__.'/resources/views', 'acl');
57+
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'acl');
5858

5959
$this->publishes([
60-
__DIR__.'/resources/views' => resource_path('views/vendor/junges/acl'),
60+
__DIR__.'/../../resources/views' => resource_path('views/vendor/junges/acl'),
6161
], 'acl-views');
6262
}
6363

@@ -67,7 +67,7 @@ public function loadViews()
6767
public function publishConfig()
6868
{
6969
$this->publishes([
70-
__DIR__.'/../config/acl.php' => config_path('acl.php'),
70+
__DIR__.'/../../config/acl.php' => config_path('acl.php'),
7171
], 'acl-config');
7272
}
7373

@@ -97,11 +97,11 @@ public function loadMigrations()
9797
if ($customMigrations) {
9898
$this->loadMigrationsFrom(database_path('migrations/vendor/junges/acl'));
9999
} else {
100-
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
100+
$this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
101101
}
102102

103103
$this->publishes([
104-
__DIR__.'/database/migrations' => database_path('migrations/vendor/junges/acl'),
104+
__DIR__.'/../../database/migrations' => database_path('migrations/vendor/junges/acl'),
105105
], 'acl-migrations');
106106
}
107107

0 commit comments

Comments
 (0)