You can use carbon to format any date as you like https://carbon.nesbot.com/docs/
//To add 30 days from now and get the date formatted
$date = Carbon::now()->addDays(30)->toDateTimeString();
//To subtract 30 days from now and get the date formatted
$date = Carbon::now()->subDays(30)->toDateTimeString();
Then you can use this date in your query condition
$current = Amortization::select('loan_type', \DB::raw('SUM(loan_amortization) as total_current'))
->where('payment_status',0)
->where('schedue', '<=', $date)
->groupBy('loan_type')
->orderBy('loan_type')
->get();