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:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\AcademicJournal;
|
||||
use App\Containers\Science\Models\AcademicJournal;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class AcademicJournalCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\AdditionalEducation;
|
||||
use App\Containers\AdditionalEducation\Models\AdditionalEducation;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class AdditionalEducationCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class AdmissionCampaignCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class CategoryCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\ContactWidget;
|
||||
use App\Containers\Widget\Models\ContactWidget;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class ContactWidgetCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\Department;
|
||||
use App\Containers\InstituteStructure\Models\Department;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class DepartmentCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Models\Division;
|
||||
use App\Containers\InstituteStructure\Models\Division;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class DivisionCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\EducationalProgram;
|
||||
use App\Containers\Education\Models\EducationalProgram;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class EducationalProgramCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\Event;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use App\Containers\Event\Models\Event;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class EventCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\Faculty;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use App\Containers\InstituteStructure\Models\Faculty;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class FacultyCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class MainSectionCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\Page;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use App\Containers\AppStructure\Models\Page;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class PageCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\PageReferenceList;
|
||||
use App\Containers\Widget\Models\PageReferenceList;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class PageReferenceListCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class PostCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\Schedule;
|
||||
use App\Containers\Schedule\Models\Schedule;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class ScheduleCacheService extends AbstractCacheService implements CacheInterface
|
||||
@@ -34,11 +34,6 @@ class ScheduleCacheService extends AbstractCacheService implements CacheInterfac
|
||||
}
|
||||
|
||||
|
||||
private function forgetScheduleCache(int $id): void
|
||||
{
|
||||
Cache::forget($this->getCacheKey($id));
|
||||
}
|
||||
|
||||
private function clearAllSchedulesCache(): void
|
||||
{
|
||||
Cache::forget(CacheKeys::SCHEDULES_PREFIX->value);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class SliderCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class SubSectionCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class TagCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Services\App\Cache;
|
||||
|
||||
use App\Enums\CacheKeys;
|
||||
use App\Models\User;
|
||||
use App\Ship\Enums\CacheKeys;
|
||||
use App\Containers\User\Models\User;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class UserCacheService extends AbstractCacheService implements CacheInterface
|
||||
|
||||
Reference in New Issue
Block a user