Fix for Net 0
This commit is contained in:
parent
d244df8acd
commit
6e99febaed
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class PaymentTermsSeeder extends Seeder
|
|||
];
|
||||
|
||||
foreach ($paymentTerms as $paymentTerm) {
|
||||
if (! DB::table('payment_terms')->where('name', '=', $paymentTerm['name'])->get()) {
|
||||
if (! DB::table('payment_terms')->where('name', '=', $paymentTerm['name'])->first()) {
|
||||
PaymentTerm::create($paymentTerm);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue