File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ parameters:
10
10
count : 1
11
11
path : src/Models/SettingsProperty.php
12
12
13
+ -
14
+ message : " #^Property 'payload' does not exist in Spatie\\\\ LaravelSettings\\\\ Models\\\\ SettingsProperty model\\ .$#"
15
+ count : 1
16
+ path : src/Models/SettingsProperty.php
17
+
13
18
-
14
19
message : " #^Call to method toArray\\ (\\ ) on an unknown class Spatie\\\\ DataTransferObject\\\\ DataTransferObject\\ .$#"
15
20
count : 1
Original file line number Diff line number Diff line change 3
3
namespace Spatie \LaravelSettings ;
4
4
5
5
use Illuminate \Database \Events \SchemaLoaded ;
6
+ use Illuminate \Database \Migrations \MigrationRepositoryInterface ;
7
+ use Illuminate \Database \Migrations \Migrator ;
6
8
use Illuminate \Support \Facades \Event ;
7
9
use Illuminate \Support \ServiceProvider ;
8
10
use Spatie \LaravelSettings \Console \CacheDiscoveredSettingsCommand ;
@@ -99,8 +101,12 @@ private function removeMigrationsWhenSchemaLoaded(SchemaLoaded $event)
99
101
->filter ()
100
102
->values ();
101
103
104
+ $ migrationsConfig = config ()->get ('database.migrations ' );
105
+
106
+ $ migrationsTable = is_array ($ migrationsConfig ) ? ($ migrationsConfig ['table ' ] ?? null ) : $ migrationsConfig ;
107
+
102
108
$ event ->connection
103
- ->table (config ()-> get ( ' database.migrations ' ) )
109
+ ->table ($ migrationsTable )
104
110
->useWritePdo ()
105
111
->whereIn ('migration ' , $ migrations )
106
112
->delete ();
You can’t perform that action at this time.
0 commit comments