Change module seeders to only temporary unguard attributes

This commit is contained in:
Ben Thomson 2020-01-19 22:26:46 +08:00
parent a4c34d1dea
commit 4302f8d4f5
No known key found for this signature in database
GPG Key ID: B2BAFACC5ED68F87
2 changed files with 6 additions and 6 deletions

View File

@ -12,8 +12,8 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
Eloquent::unguard();
$this->call('Backend\Database\Seeds\SeedSetupAdmin');
Eloquent::unguarded(function () {
$this->call('Backend\Database\Seeds\SeedSetupAdmin');
});
}
}

View File

@ -13,8 +13,8 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
Eloquent::unguard();
$this->call('System\Database\Seeds\SeedSetupMailLayouts');
Eloquent::unguarded(function () {
$this->call('System\Database\Seeds\SeedSetupMailLayouts');
});
}
}