Migrate backend to Porto architecture and fix minor bugs
- Fully transitioned the backend to the Porto architectural pattern - Improved code organization and maintainability - Fixed minor bugs and inconsistencies
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Education\UI\API\Controllers;
|
||||
|
||||
use App\Containers\Education\Models\AdmissionCampaign;
|
||||
use App\Ship\Controllers\Controller;
|
||||
|
||||
class AcademicYearController extends Controller
|
||||
{
|
||||
public function __invoke()
|
||||
{
|
||||
$activeCampaign = AdmissionCampaign::query()->where('status', 1)->firstOrFail();
|
||||
return $activeCampaign->academic_year;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user