solve condition for payments migration

This commit is contained in:
harshjagad20
2021-12-17 13:30:02 +05:30
parent 4a85a5d2ab
commit f59bae9518

View File

@ -12,7 +12,7 @@ class CalculateBaseAmountOfPaymentsTable extends Migration
*/ */
public function up() public function up()
{ {
$payments = Payment::all(); $payments = Payment::where('exchange_rate', '<>', null)->get();
if ($payments) { if ($payments) {
foreach ($payments as $payment) { foreach ($payments as $payment) {