# lebronbrian23/laravel-cms-backend architecture

> Architecture diagram of the GitHub repository lebronbrian23/laravel-cms-backend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lebronbrian23/laravel-cms-backend
- Repository: https://github.com/lebronbrian23/laravel-cms-backend

## Overview

This is a Laravel CMS for managing a public portfolio and its content through an authenticated console. The main workflow is an administrator submitting requests to console routes, which dispatch to resource controllers for validation and CRUD, persist through Eloquent models, and render views; project types, skills, social links, and user management are distinct management areas. Project and content-block images use S3 storage. The README also documents login/dashboard, database seeding, and API support. Unsampled route, view, and API details are represented only where the tree or explicit documentation supports them.

Main entry points: [`routes/web.php`](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/routes/web.php) (Web routes), [`app/Models/Type.php`](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Type.php) (Type records), [`app/Http/Controllers/ProjectsController.php`](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ProjectsController.php) (Project management), [`app/Http/Controllers/ContentBlockController.php`](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ContentBlockController.php) (Content blocks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Laravel runtime"]
  node_entry["HTTP entry<br/>[index.php]"]
  node_bootstrap["App bootstrap<br/>[app.php]"]
  node_httpkernel["HTTP kernel<br/>[Kernel.php]"]
  node_routeprovider["Route registration"]
  node_webroutes["Web routes<br/>[web.php]"]
  node_apiroutes["API routes<br/>[api.php]"]
end

subgraph group_admin["Console management"]
  node_console["Login and dashboard"]
  node_users["User management"]
  node_projects["Project management"]
  node_contentblocks["Content blocks"]
  node_skills["Skill management"]
  node_social["Social links"]
  node_types["Project types"]
  node_consoleviews["Console views"]
  node_contentviews["Content views"]
end

subgraph group_domain["CMS content"]
  node_projectmodel["Project records<br/>[Project.php]"]
  node_contentmodel["Content block records<br/>[ContentBlock.php]"]
  node_skillmodel["Skill records<br/>[Skill.php]"]
  node_socialmodel["Social records<br/>[SocialMedia.php]"]
  node_typemodel["Type records<br/>[Type.php]"]
  node_usermodel["User records<br/>[User.php]"]
end

subgraph group_frontend["Public experience"]
  node_frontendview["Public portfolio<br/>[welcome.blade.php]"]
  node_projectview["Project detail<br/>[project.blade.php]"]
  node_tinymce["TinyMCE editor"]
  node_jsbootstrap["Browser bootstrap<br/>[bootstrap.js]"]
end

subgraph group_integrations["External services"]
  node_s3[("AWS S3")]
end

node_visitor(("Site visitor"))
node_administrator(("Administrator"))

node_visitor -->|"requests pages"| node_entry
node_administrator -->|"submits changes"| node_entry
node_entry -->|"loads app"| node_bootstrap
node_entry -->|"handles requests"| node_httpkernel
node_bootstrap -->|"binds kernel"| node_httpkernel
node_routeprovider -->|"registers web"| node_webroutes
node_routeprovider -->|"registers API"| node_apiroutes
node_webroutes -->|"dispatches to"| node_console
node_webroutes -->|"dispatches to"| node_users
node_webroutes -->|"dispatches to"| node_projects
node_webroutes -->|"dispatches to"| node_contentblocks
node_webroutes -->|"dispatches to"| node_skills
node_webroutes -->|"dispatches to"| node_social
node_webroutes -->|"dispatches to"| node_types
node_console -.->|"renders"| node_consoleviews
node_contentblocks -->|"reads and writes"| node_contentmodel
node_contentblocks -->|"renders"| node_contentviews
node_projects -->|"reads and writes"| node_projectmodel
node_projects -->|"loads types"| node_typemodel
node_skills -->|"reads and writes"| node_skillmodel
node_social -->|"reads and writes"| node_socialmodel
node_types -->|"reads and writes"| node_typemodel
node_users -->|"reads and writes"| node_usermodel
node_projects -->|"stores images"| node_s3
node_contentblocks -->|"stores images"| node_s3
node_social -->|"stores images"| node_s3
node_visitor -.->|"views portfolio"| node_frontendview
node_frontendview -->|"reads projects"| node_projectmodel
node_frontendview -->|"reads types"| node_typemodel
node_projectmodel -->|"belongs to"| node_typemodel
node_typemodel -->|"has many"| node_projectmodel
node_tinymce -.->|"uses browser setup"| node_jsbootstrap

click node_entry "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/public/index.php"
click node_bootstrap "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/bootstrap/app.php"
click node_httpkernel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Kernel.php"
click node_routeprovider "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Providers/RouteServiceProvider.php"
click node_webroutes "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/routes/web.php"
click node_apiroutes "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/routes/api.php"
click node_console "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ConsoleController.php"
click node_users "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/UsersController.php"
click node_projects "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ProjectsController.php"
click node_contentblocks "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ContentBlockController.php"
click node_skills "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/SkillController.php"
click node_social "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/SocialMediaController.php"
click node_types "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/TypesController.php"
click node_projectmodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Project.php"
click node_contentmodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/ContentBlock.php"
click node_skillmodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Skill.php"
click node_socialmodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/SocialMedia.php"
click node_typemodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Type.php"
click node_usermodel "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/User.php"
click node_frontendview "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/welcome.blade.php"
click node_projectview "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/project.blade.php"
click node_consoleviews "https://github.com/lebronbrian23/laravel-cms-backend/tree/master/resources/views/console"
click node_contentviews "https://github.com/lebronbrian23/laravel-cms-backend/tree/master/resources/views/content_blocks"
click node_tinymce "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/components/forms/tinymce-editor.blade.php"
click node_jsbootstrap "https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/js/bootstrap.js"

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_entry,node_bootstrap,node_httpkernel,node_routeprovider,node_webroutes,node_apiroutes toneBlue
class node_console,node_users,node_projects,node_contentblocks,node_skills,node_social,node_types,node_consoleviews,node_contentviews toneAmber
class node_projectmodel,node_contentmodel,node_skillmodel,node_socialmodel,node_typemodel,node_usermodel toneMint
class node_frontendview,node_projectview,node_tinymce,node_jsbootstrap toneRose
class node_s3,node_visitor,node_administrator toneIndigo
```

## Components

### Laravel runtime

- [HTTP entry](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/public/index.php): `public/index.php`
- [App bootstrap](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/bootstrap/app.php): `bootstrap/app.php`
- [HTTP kernel](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Kernel.php): `app/Http/Kernel.php`
- [Route registration](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`
- [Web routes](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/routes/web.php): `routes/web.php`
- [API routes](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/routes/api.php): `routes/api.php`

### Console management

- [Login and dashboard](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ConsoleController.php): `app/Http/Controllers/ConsoleController.php`
- [User management](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/UsersController.php): `app/Http/Controllers/UsersController.php`
- [Project management](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ProjectsController.php): `app/Http/Controllers/ProjectsController.php`
- [Content blocks](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/ContentBlockController.php): `app/Http/Controllers/ContentBlockController.php`
- [Skill management](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/SkillController.php): `app/Http/Controllers/SkillController.php`
- [Social links](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/SocialMediaController.php): `app/Http/Controllers/SocialMediaController.php`
- [Project types](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Http/Controllers/TypesController.php): `app/Http/Controllers/TypesController.php`
- [Console views](https://github.com/lebronbrian23/laravel-cms-backend/tree/master/resources/views/console): `resources/views/console`
- [Content views](https://github.com/lebronbrian23/laravel-cms-backend/tree/master/resources/views/content_blocks): `resources/views/content_blocks`

### CMS content

- [Project records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Project.php): `app/Models/Project.php`
- [Content block records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/ContentBlock.php): `app/Models/ContentBlock.php`
- [Skill records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Skill.php): `app/Models/Skill.php`
- [Social records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/SocialMedia.php): `app/Models/SocialMedia.php`
- [Type records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/Type.php): `app/Models/Type.php`
- [User records](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/app/Models/User.php): `app/Models/User.php`

### Public experience

- [Public portfolio](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/welcome.blade.php): `resources/views/welcome.blade.php`
- [Project detail](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/project.blade.php): `resources/views/project.blade.php`
- [TinyMCE editor](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/views/components/forms/tinymce-editor.blade.php): `resources/views/components/forms/tinymce-editor.blade.php`
- [Browser bootstrap](https://github.com/lebronbrian23/laravel-cms-backend/blob/master/resources/js/bootstrap.js): `resources/js/bootstrap.js`

### External services

- **AWS S3**

### Other components

- **Site visitor**
- **Administrator**

## Connections

- Site visitor → HTTP entry: requests pages
- Administrator → HTTP entry: submits changes
- HTTP entry → App bootstrap: loads app (evidence: `public/index.php`)
- HTTP entry → HTTP kernel: handles requests (evidence: `public/index.php`)
- App bootstrap → HTTP kernel: binds kernel (evidence: `bootstrap/app.php`)
- Route registration → Web routes: registers web (evidence: `app/Providers/RouteServiceProvider.php`)
- Route registration → API routes: registers API (evidence: `app/Providers/RouteServiceProvider.php`)
- Web routes → Login and dashboard: dispatches to (evidence: `routes/web.php`)
- Web routes → User management: dispatches to (evidence: `routes/web.php`)
- Web routes → Project management: dispatches to (evidence: `routes/web.php`)
- Web routes → Content blocks: dispatches to (evidence: `routes/web.php`)
- Web routes → Skill management: dispatches to (evidence: `routes/web.php`)
- Web routes → Social links: dispatches to (evidence: `routes/web.php`)
- Web routes → Project types: dispatches to (evidence: `routes/web.php`)
- Login and dashboard → Console views: renders
- Content blocks → Content block records: reads and writes (evidence: `app/Http/Controllers/ContentBlockController.php`)
- Content blocks → Content views: renders (evidence: `app/Http/Controllers/ContentBlockController.php`)
- Project management → Project records: reads and writes (evidence: `app/Http/Controllers/ProjectsController.php`)
- Project management → Type records: loads types (evidence: `app/Http/Controllers/ProjectsController.php`)
- Skill management → Skill records: reads and writes (evidence: `app/Http/Controllers/SkillController.php`)
- Social links → Social records: reads and writes (evidence: `app/Http/Controllers/SocialMediaController.php`)
- Project types → Type records: reads and writes (evidence: `app/Http/Controllers/TypesController.php`)
- User management → User records: reads and writes (evidence: `app/Http/Controllers/UsersController.php`)
- Project management → AWS S3: stores images (evidence: `app/Http/Controllers/ProjectsController.php`)
- Content blocks → AWS S3: stores images (evidence: `app/Http/Controllers/ContentBlockController.php`)
- Social links → AWS S3: stores images (evidence: `app/Http/Controllers/SocialMediaController.php`)
- Site visitor → Public portfolio: views portfolio
- Public portfolio → Project records: reads projects (evidence: `resources/views/welcome.blade.php`)
- Public portfolio → Type records: reads types (evidence: `resources/views/welcome.blade.php`)
- Project records → Type records: belongs to (evidence: `app/Models/Project.php`)
- Type records → Project records: has many (evidence: `app/Models/Type.php`)
- TinyMCE editor → Browser bootstrap: uses browser setup
