8000 fix · laraveladmin-cn/laraveladmin@6a67c05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a67c05

Browse files
author
张世平
committed
fix
1 parent eccf114 commit 6a67c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/seeders/Commands/ForceDeleteSeeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function run()
1919
collect(Storage::disk('root')->allFiles('/app/Models'))
2020
->each(function($file){
2121
$file = Str::replaceFirst('app/Models/','',$file);
22-
if(Str::startsWith($file,'.') || Str::startsWith($file,'Traits/')){
22+
if(Str::startsWith($file,'.') || Str::startsWith($file,'Traits/') || Str::startsWith($file,'Casts/')){
2323
return;
2424
}
2525
$model_str = '\\App\Models\\'.str_replace('.php','',$file);

0 commit comments

Comments
 (0)
0