How ayaneklectik/24ghonta_october4 works
This repository combines a Next.js news site and admin interface with a Laravel backend. The main reader workflow is browsing or searching news through the public site, which obtains data through Next.js API routes and a Laravel API; admins manage news and site content through the admin interface. Laravel also serves public content and handles news, media, and account-related operations. The README is empty, and several UI pages and Laravel subsystems were not sampled, so links based only on likely runtime wiring are omitted or marked unverified.
Main entry points: NewsController.php News controller · api API routes · PublicController.php Public controller · admin Admin pages
Components 23
Public news
- News pages
app/(public) - Dynamic home
components/DynamicHome.tsx - Search page
app/(public)/search/page.tsx
Admin
- Admin pages
app/(backend-ui)/admin - Dashboard
components/dashboard/DashboardContent.tsx - Admin login
app/admin/login/page.tsx
Next API layer
- API routes
app/api - Laravel proxy
lib/laravel-proxy.ts - Public data
lib/public-data.ts - Public types
types/public.ts
Laravel backend
- Public controller
public_html/app/Http/Controllers/PublicController.php - News controller
public_html/app/Http/Controllers/NewsController.php - Auth controller
public_html/app/Http/Controllers/AuthController.php - Firebase users
public_html/app/Services/FirebaseServiceUsers.php
Content data
- News records
public_html/app/Models/NewsTable.php - Categories
public_html/app/Models/Category.php - Subcategories
public_html/app/Models/SubCategory.php - Media models
public_html/app/Models - Site settings
public_html/app/Models/App_setting.php - Ad manager
public_html/app/Models/AdManager.php
Other components
- Reader
- Admin
- Laravel API
Connections 22
- Reader → News pages: browses
- Reader → Search page: searches
- Admin → Admin login: signs in
- Admin → Admin pages: manages content
- News pages → API routes: requests data
- Dynamic home → API routes: requests data
- Search page → API routes: uses search API
app/(public)/search/page.tsx - Admin pages → API routes: requests data
- API routes → Laravel proxy: dispatches
app/api/categories/route.ts - Laravel proxy → Laravel API: forwards HTTP
lib/laravel-proxy.ts - Public data → Public types: uses types
lib/public-data.ts - Public data → Site settings: reads settings
- Public controller → News records: queries news
public_html/app/Http/Controllers/PublicController.php - Public controller → Categories: queries categories
public_html/app/Http/Controllers/PublicController.php - Public controller → Media models: queries media
public_html/app/Http/Controllers/PublicController.php - News controller → News records: manages news
public_html/app/Http/Controllers/NewsController.php - News controller → Categories: loads categories
public_html/app/Http/Controllers/NewsController.php - News controller → Subcategories: loads subcategories
public_html/app/Http/Controllers/NewsController.php - News controller → Site settings: loads settings
public_html/app/Http/Controllers/NewsController.php - News controller → Media models: loads content
public_html/app/Http/Controllers/NewsController.php - Auth controller → Firebase users: uses service
- Admin pages → Ad manager: manages ads