Fix for Net 0

This commit is contained in:
Hillel Coren 2018-03-04 23:37:23 +02:00
parent 7e4a7921cb
commit 42858ab46c

View File

@ -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);
}
}