Fix for Net 0

This commit is contained in:
Hillel Coren 2018-03-04 23:37:10 +02:00
parent d244df8acd
commit 6e99febaed

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