update controllers logic
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user