update controllers logic

This commit is contained in:
root
2026-04-23 00:04:35 -04:00
parent 1977a513df
commit ca4ba272fc
353 changed files with 13402 additions and 1301 deletions
@@ -3,10 +3,16 @@
namespace App\Services\Payments;
use App\Models\Configuration;
use App\Services\ApplicationUrlService;
use Illuminate\Support\Facades\DB;
class PaymentEnrollmentEventService
{
public function __construct(
private ApplicationUrlService $urls,
) {
}
public function buildEventData(
int $parentId,
array $studentIds,
@@ -16,7 +22,7 @@ class PaymentEnrollmentEventService
): array {
$schoolYear = $schoolYear ?: Configuration::getConfig('school_year');
$semester = $semester ?: Configuration::getConfig('semester');
$portalLink = $portalLink ?: url('/login');
$portalLink = $portalLink ?: $this->urls->webLoginUrl();
$parent = DB::table('users')
->select('id', 'firstname', 'lastname', 'email')