File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Contracts \Support \DeferrableProvider ;
6
6
use Illuminate \Support \ServiceProvider ;
7
-
8
- use OwenIt \Auditing \Contracts \Auditor ;
9
7
use OwenIt \Auditing \Console \AuditDriverCommand ;
10
8
use OwenIt \Auditing \Console \InstallCommand ;
9
+ use OwenIt \Auditing \Contracts \Auditor ;
11
10
12
11
class AuditingServiceProvider extends ServiceProvider implements DeferrableProvider
13
12
{
@@ -52,11 +51,13 @@ private function registerPublishing()
52
51
__DIR__ . '/../config/audit.php ' => base_path ('config/audit.php ' ),
53
52
], 'config ' );
54
53
55
- $ this ->publishes ([
56
- __DIR__ . '/../database/migrations/audits.stub ' => database_path (
57
- sprintf ('migrations/%s_create_audits_table.php ' , date ('Y_m_d_His ' ))
58
- ),
59
- ], 'migrations ' );
54
+ if (!class_exists ('CreateAuditsTable ' )) {
55
+ $ this ->publishes ([
56
+ __DIR__ . '/../database/migrations/audits.stub ' => database_path (
57
+ sprintf ('migrations/%s_create_audits_table.php ' , date ('Y_m_d_His ' ))
58
+ ),
59
+ ], 'migrations ' );
60
+ }
60
61
}
61
62
}
62
63
You can’t perform that action at this time.
0 commit comments