# ibrahimjml/myblog4u architecture

> Architecture diagram of the GitHub repository ibrahimjml/myblog4u, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ibrahimjml/myblog4u
- Repository: https://github.com/ibrahimjml/myblog4u

## Overview

MyBlog4u is a Laravel social publishing and networking platform. A creator submits an article through the post controller and service layer; readers browse and search articles, then interact through comments, likes, follows, and reports. Separate product branches cover authentication and creator settings, administrator controls, automated web/RSS news scraping, and sitemap generation. The README documents capabilities that were not sampled; those links are cited to it, while implementation-level links are limited to relationships visible in the excerpts or source index.

Main entry points: [`app/Http/Controllers/PostController.php`](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/PostController.php) (Post endpoints), [`app/Services/SearchService.php`](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/SearchService.php) (Search service), [`app/Http/Controllers/Admin/AdminController.php`](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/AdminController.php) (Admin control panel), [`app/Models/Post.php`](https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/Post.php) (Post records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_publishing["Publishing and discovery"]
  node_post_controller["Post endpoints<br/>[PostController.php]"]
  node_post_service["Post service<br/>[PostService.php]"]
  node_post_store[("Post records<br/>[Post.php]")]
  node_search_service["Search service<br/>[SearchService.php]"]
  node_post_repository["Post repository<br/>[PostRepository.php]"]
  node_news_repository["News repository<br/>[NewsRepository.php]"]
  node_search_results["Search results<br/>[SearchResponse.php]"]
end

subgraph group_community["Creator community"]
  node_creator_tools["Creator dashboard"]
  node_comments["Comments and mentions"]
  node_follow["Follow system"]
  node_reports["User reports"]
  node_user_model[("User and profiles<br/>[User.php]")]
  node_auth["Authentication and security"]
  node_account_settings["Account settings"]
end

subgraph group_operations["Administration"]
  node_admin["Admin control panel"]
  node_moderation["Moderation and reports"]
  node_scraping_admin["Scraping management"]
  node_scraping_job["Scraping jobs"]
  node_news_store[("Scraped news<br/>[ScrapedPost.php]")]
  node_scraper["RSS and web scrapers"]
end

subgraph group_platform["Platform services"]
  node_sitemap_manager["Sitemap generation<br/>[SitemapManager.php]"]
  node_sitemap["Sitemap output<br/>[Sitemap.php]"]
  node_media["Media drivers"]
  node_email_notifications["Email and in-app notifications"]
  node_analytics["Analytics integration"]
end

node_visitor(("Reader or creator"))

node_visitor -->|"browses or submits"| node_post_controller
node_post_controller -->|"creates or updates"| node_post_service
node_post_controller -->|"loads post"| node_post_store
node_post_controller -->|"requests search"| node_search_service
node_search_service -->|"queries posts"| node_post_repository
node_search_service -->|"queries news"| node_news_repository
node_search_service -->|"formats results"| node_search_results
node_post_repository -->|"queries posts"| node_post_store
node_visitor -->|"creates articles"| node_creator_tools
node_visitor -->|"comments and mentions"| node_comments
node_visitor -->|"follows creators"| node_follow
node_visitor -->|"reports content"| node_reports
node_visitor -->|"signs in"| node_auth
node_visitor -->|"manages account"| node_account_settings
node_account_settings -->|"updates profile"| node_user_model
node_visitor -->|"administers platform"| node_admin
node_admin -->|"manages moderation"| node_moderation
node_admin -->|"configures sources"| node_scraping_admin
node_scraping_admin -->|"schedules crawling"| node_scraping_job
node_scraping_job -.->|"runs scraper"| node_scraper
node_scraper -.->|"stores scraped news"| node_news_store
node_news_repository -->|"queries news"| node_news_store
node_sitemap_manager -->|"builds output"| node_sitemap
node_sitemap_manager -->|"reads published posts"| node_post_store
node_visitor -->|"uploads media"| node_media
node_visitor -->|"receives notifications"| node_email_notifications
node_admin -->|"views analytics"| node_analytics

click node_post_controller "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/PostController.php"
click node_post_service "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/PostService.php"
click node_post_store "https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/Post.php"
click node_search_service "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/SearchService.php"
click node_post_repository "https://github.com/ibrahimjml/myblog4u/blob/master/app/Repositories/Eloquent/PostRepository.php"
click node_news_repository "https://github.com/ibrahimjml/myblog4u/blob/master/app/Repositories/Eloquent/NewsRepository.php"
click node_search_results "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Responses/SearchResponse.php"
click node_creator_tools "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/User/DashboardController.php"
click node_comments "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/CommentController.php"
click node_follow "https://github.com/ibrahimjml/myblog4u/blob/master/app/Actions/FollowUserAction.php"
click node_reports "https://github.com/ibrahimjml/myblog4u/blob/master/app/Actions/Reports/CreatePostReportAction.php"
click node_user_model "https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/User.php"
click node_auth "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Auth/LoginUserService.php"
click node_account_settings "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/User/ProfileSettingsController.php"
click node_admin "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/AdminController.php"
click node_moderation "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/PostModeration/PostModerationController.php"
click node_scraping_admin "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/Scraping/ScrapingController.php"
click node_scraping_job "https://github.com/ibrahimjml/myblog4u/blob/master/app/Jobs/ScrapeSourceJob.php"
click node_news_store "https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/Scraping/ScrapedPost.php"
click node_scraper "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Scraping/RssScraperService.php"
click node_sitemap_manager "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Sitemap/SitemapManager.php"
click node_sitemap "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Sitemap/Sitemap.php"
click node_media "https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/MediaDriverResolver.php"
click node_email_notifications "https://github.com/ibrahimjml/myblog4u/blob/master/app/Listeners/SendPostNotification.php"
click node_analytics "https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/Analytics/AnalyticsController.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_post_controller,node_post_service,node_post_store,node_search_service,node_post_repository,node_news_repository,node_search_results toneBlue
class node_creator_tools,node_comments,node_follow,node_reports,node_user_model,node_auth,node_account_settings toneAmber
class node_admin,node_moderation,node_scraping_admin,node_scraping_job,node_news_store,node_scraper toneMint
class node_sitemap_manager,node_sitemap,node_media,node_email_notifications,node_analytics toneRose
class node_visitor toneIndigo
```

## Components

### Publishing and discovery

- [Post endpoints](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/PostController.php): `app/Http/Controllers/PostController.php`
- [Post service](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/PostService.php): `app/Services/PostService.php`
- [Post records](https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/Post.php): `app/Models/Post.php`
- [Search service](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/SearchService.php): `app/Services/SearchService.php`
- [Post repository](https://github.com/ibrahimjml/myblog4u/blob/master/app/Repositories/Eloquent/PostRepository.php): `app/Repositories/Eloquent/PostRepository.php`
- [News repository](https://github.com/ibrahimjml/myblog4u/blob/master/app/Repositories/Eloquent/NewsRepository.php): `app/Repositories/Eloquent/NewsRepository.php`
- [Search results](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Responses/SearchResponse.php): `app/Http/Responses/SearchResponse.php`

### Creator community

- [Creator dashboard](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/User/DashboardController.php): `app/Http/Controllers/User/DashboardController.php`
- [Comments and mentions](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/CommentController.php): `app/Http/Controllers/CommentController.php`
- [Follow system](https://github.com/ibrahimjml/myblog4u/blob/master/app/Actions/FollowUserAction.php): `app/Actions/FollowUserAction.php`
- [User reports](https://github.com/ibrahimjml/myblog4u/blob/master/app/Actions/Reports/CreatePostReportAction.php): `app/Actions/Reports/CreatePostReportAction.php`
- [User and profiles](https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/User.php): `app/Models/User.php`
- [Authentication and security](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Auth/LoginUserService.php): `app/Services/Auth/LoginUserService.php`
- [Account settings](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/User/ProfileSettingsController.php): `app/Http/Controllers/User/ProfileSettingsController.php`

### Administration

- [Admin control panel](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/AdminController.php): `app/Http/Controllers/Admin/AdminController.php`
- [Moderation and reports](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/PostModeration/PostModerationController.php): `app/Http/Controllers/Admin/PostModeration/PostModerationController.php`
- [Scraping management](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/Scraping/ScrapingController.php): `app/Http/Controllers/Admin/Scraping/ScrapingController.php`
- [Scraping jobs](https://github.com/ibrahimjml/myblog4u/blob/master/app/Jobs/ScrapeSourceJob.php): `app/Jobs/ScrapeSourceJob.php`
- [Scraped news](https://github.com/ibrahimjml/myblog4u/blob/master/app/Models/Scraping/ScrapedPost.php): `app/Models/Scraping/ScrapedPost.php`
- [RSS and web scrapers](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Scraping/RssScraperService.php): `app/Services/Scraping/RssScraperService.php`

### Platform services

- [Sitemap generation](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Sitemap/SitemapManager.php): `app/Services/Sitemap/SitemapManager.php`
- [Sitemap output](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/Sitemap/Sitemap.php): `app/Services/Sitemap/Sitemap.php`
- [Media drivers](https://github.com/ibrahimjml/myblog4u/blob/master/app/Services/MediaDriverResolver.php): `app/Services/MediaDriverResolver.php`
- [Email and in-app notifications](https://github.com/ibrahimjml/myblog4u/blob/master/app/Listeners/SendPostNotification.php): `app/Listeners/SendPostNotification.php`
- [Analytics integration](https://github.com/ibrahimjml/myblog4u/blob/master/app/Http/Controllers/Admin/Analytics/AnalyticsController.php): `app/Http/Controllers/Admin/Analytics/AnalyticsController.php`

### Other components

- **Reader or creator**

## Connections

- Reader or creator → Post endpoints: browses or submits
- Post endpoints → Post service: creates or updates (evidence: `app/Http/Controllers/PostController.php`)
- Post endpoints → Post records: loads post (evidence: `app/Http/Controllers/PostController.php`)
- Post endpoints → Search service: requests search (evidence: `app/Http/Controllers/PostController.php`)
- Search service → Post repository: queries posts (evidence: `app/Services/SearchService.php`)
- Search service → News repository: queries news (evidence: `app/Services/SearchService.php`)
- Search service → Search results: formats results (evidence: `app/Services/SearchService.php`)
- Post repository → Post records: queries posts (evidence: `app/Repositories/Eloquent/PostRepository.php`)
- Reader or creator → Creator dashboard: creates articles
- Reader or creator → Comments and mentions: comments and mentions
- Reader or creator → Follow system: follows creators
- Reader or creator → User reports: reports content
- Reader or creator → Authentication and security: signs in
- Reader or creator → Account settings: manages account
- Account settings → User and profiles: updates profile (evidence: `app/Http/Controllers/User/ProfileSettingsController.php`)
- Reader or creator → Admin control panel: administers platform
- Admin control panel → Moderation and reports: manages moderation
- Admin control panel → Scraping management: configures sources
- Scraping management → Scraping jobs: schedules crawling
- Scraping jobs → RSS and web scrapers: runs scraper
- RSS and web scrapers → Scraped news: stores scraped news
- News repository → Scraped news: queries news (evidence: `app/Repositories/Eloquent/NewsRepository.php`)
- Sitemap generation → Sitemap output: builds output (evidence: `app/Services/Sitemap/SitemapManager.php`)
- Sitemap generation → Post records: reads published posts (evidence: `app/Services/Sitemap/SitemapManager.php`)
- Reader or creator → Media drivers: uploads media
- Reader or creator → Email and in-app notifications: receives notifications
- Admin control panel → Analytics integration: views analytics
