# l1enn/laravel-projects architecture

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

- Interactive diagram: https://gitdiagram.com/l1enn/laravel-projects
- Repository: https://github.com/l1enn/laravel-projects

## Overview

This repository contains two Laravel applications: a social blog and a web shop. In the blog, visitors browse posts and signed-in users can manage posts, profiles, and engagement; in the shop, users browse goods and manage baskets and orders, while admins maintain the catalog. The graph preserves those product areas and their domain models. Several route files and controllers were not excerpted, so links that would depend on that wiring are omitted; dashed links mark unverified runtime connections.

Main entry points: [`blog/resources/js/router.js`](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/router.js) (Blog navigation), [`blog/app/Models/User.php`](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/User.php) (User accounts), [`blog/app/Models/Post.php`](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Post.php) (Posts), [`shop/app/Http/Controllers/OrderController.php`](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/OrderController.php) (Order operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_blog_ui["Blog interface"]
  node_blog_app["Blog Vue app<br/>[app.js]"]
  node_blog_router["Blog navigation<br/>[router.js]"]
  node_blog_auth_ui["Login and registration<br/>[LoginComponent.vue]"]
  node_blog_auth_store["Authentication state<br/>[AuthStore.js]"]
  node_blog_posts_store["Post state<br/>[PostsStore.js]"]
  node_blog_post_ui["Post views and editing"]
  node_blog_profile_ui["Profile views"]
end

subgraph group_blog_domain["Blog domain"]
  node_blog_post_controller["Post operations<br/>[PostController.php]"]
  node_blog_profile_controller["Profile operations"]
  node_blog_user_model["User accounts<br/>[User.php]"]
  node_blog_post_model["Posts<br/>[Post.php]"]
  node_blog_comment_model["Comments<br/>[Comment.php]"]
  node_blog_like_model["Likes<br/>[Like.php]"]
  node_blog_view_model["Post views<br/>[View.php]"]
  node_blog_profile_model["Profiles<br/>[Profile.php]"]
end

subgraph group_shop_catalog["Shop catalog"]
  node_shop_catalog_controller["Catalog operations<br/>[GoodController.php]"]
  node_shop_goods["Goods<br/>[Good.php]"]
  node_shop_admin["Admin access"]
end

subgraph group_shop_commerce["Shop commerce"]
  node_shop_basket_controller["Basket operations"]
  node_shop_basket["Basket<br/>[Basket.php]"]
  node_shop_order_controller["Order operations"]
  node_shop_orders["Orders<br/>[Order.php]"]
end

node_blog_user(("Blog visitor"))
node_shop_user(("Shop visitor"))

node_blog_app -->|"installs"| node_blog_router
node_blog_router -->|"checks auth"| node_blog_auth_store
node_blog_router -->|"checks posts"| node_blog_posts_store
node_blog_router -->|"routes to"| node_blog_auth_ui
node_blog_router -->|"routes to"| node_blog_post_ui
node_blog_router -->|"routes to"| node_blog_profile_ui
node_blog_post_controller -->|"reads and writes"| node_blog_post_model
node_blog_profile_controller -->|"uses"| node_blog_profile_model
node_blog_user_model -->|"has profile"| node_blog_profile_model
node_blog_user_model -->|"has posts"| node_blog_post_model
node_blog_user_model -->|"has comments"| node_blog_comment_model
node_blog_user_model -->|"has likes"| node_blog_like_model
node_blog_user_model -->|"has views"| node_blog_view_model
node_blog_post_model -->|"has comments"| node_blog_comment_model
node_blog_post_model -->|"has likes"| node_blog_like_model
node_blog_post_model -->|"has views"| node_blog_view_model
node_blog_user -.->|"uses"| node_blog_app
node_blog_auth_store -.->|"requests API"| node_blog_post_controller
node_shop_catalog_controller -->|"reads and writes"| node_shop_goods
node_shop_order_controller -->|"uses"| node_shop_basket
node_shop_order_controller -->|"uses"| node_shop_goods
node_shop_order_controller -->|"uses"| node_shop_orders
node_shop_goods -->|"has baskets"| node_shop_basket
node_shop_goods -->|"has orders"| node_shop_orders
node_shop_user -.->|"browses"| node_shop_catalog_controller
node_shop_user -.->|"manages basket"| node_shop_basket_controller
node_shop_user -.->|"places orders"| node_shop_order_controller
node_shop_admin -.->|"manages catalog"| node_shop_catalog_controller

click node_blog_app "https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/app.js"
click node_blog_router "https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/router.js"
click node_blog_auth_ui "https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/components/auth/LoginComponent.vue"
click node_blog_auth_store "https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/stores/AuthStore.js"
click node_blog_posts_store "https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/stores/PostsStore.js"
click node_blog_post_ui "https://github.com/l1enn/laravel-projects/tree/main/blog/resources/js/components/posts"
click node_blog_profile_ui "https://github.com/l1enn/laravel-projects/tree/main/blog/resources/js/components/profile"
click node_blog_post_controller "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Http/Controllers/PostController.php"
click node_blog_profile_controller "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Http/Controllers/ProfileController.php"
click node_blog_user_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/User.php"
click node_blog_post_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Post.php"
click node_blog_comment_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Comment.php"
click node_blog_like_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Like.php"
click node_blog_view_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/View.php"
click node_blog_profile_model "https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Profile.php"
click node_shop_catalog_controller "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/GoodController.php"
click node_shop_goods "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Good.php"
click node_shop_admin "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/AdminController.php"
click node_shop_basket_controller "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/BasketController.php"
click node_shop_basket "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Basket.php"
click node_shop_order_controller "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/OrderController.php"
click node_shop_orders "https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Order.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_blog_app,node_blog_router,node_blog_auth_ui,node_blog_auth_store,node_blog_posts_store,node_blog_post_ui,node_blog_profile_ui toneBlue
class node_blog_post_controller,node_blog_profile_controller,node_blog_user_model,node_blog_post_model,node_blog_comment_model,node_blog_like_model,node_blog_view_model,node_blog_profile_model toneAmber
class node_shop_catalog_controller,node_shop_goods,node_shop_admin toneMint
class node_shop_basket_controller,node_shop_basket,node_shop_order_controller,node_shop_orders toneRose
class node_blog_user,node_shop_user toneIndigo
```

## Components

### Blog interface

- [Blog Vue app](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/app.js): `blog/resources/js/app.js`
- [Blog navigation](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/router.js): `blog/resources/js/router.js`
- [Login and registration](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/components/auth/LoginComponent.vue): `blog/resources/js/components/auth/LoginComponent.vue`
- [Authentication state](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/stores/AuthStore.js): `blog/resources/js/stores/AuthStore.js`
- [Post state](https://github.com/l1enn/laravel-projects/blob/main/blog/resources/js/stores/PostsStore.js): `blog/resources/js/stores/PostsStore.js`
- [Post views and editing](https://github.com/l1enn/laravel-projects/tree/main/blog/resources/js/components/posts): `blog/resources/js/components/posts`
- [Profile views](https://github.com/l1enn/laravel-projects/tree/main/blog/resources/js/components/profile): `blog/resources/js/components/profile`

### Blog domain

- [Post operations](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Http/Controllers/PostController.php): `blog/app/Http/Controllers/PostController.php`
- [Profile operations](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Http/Controllers/ProfileController.php): `blog/app/Http/Controllers/ProfileController.php`
- [User accounts](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/User.php): `blog/app/Models/User.php`
- [Posts](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Post.php): `blog/app/Models/Post.php`
- [Comments](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Comment.php): `blog/app/Models/Comment.php`
- [Likes](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Like.php): `blog/app/Models/Like.php`
- [Post views](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/View.php): `blog/app/Models/View.php`
- [Profiles](https://github.com/l1enn/laravel-projects/blob/main/blog/app/Models/Profile.php): `blog/app/Models/Profile.php`

### Shop catalog

- [Catalog operations](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/GoodController.php): `shop/app/Http/Controllers/GoodController.php`
- [Goods](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Good.php): `shop/app/Models/Good.php`
- [Admin access](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/AdminController.php): `shop/app/Http/Controllers/AdminController.php`

### Shop commerce

- [Basket operations](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/BasketController.php): `shop/app/Http/Controllers/BasketController.php`
- [Basket](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Basket.php): `shop/app/Models/Basket.php`
- [Order operations](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Http/Controllers/OrderController.php): `shop/app/Http/Controllers/OrderController.php`
- [Orders](https://github.com/l1enn/laravel-projects/blob/main/shop/app/Models/Order.php): `shop/app/Models/Order.php`

### Other components

- **Blog visitor**
- **Shop visitor**

## Connections

- Blog Vue app → Blog navigation: installs (evidence: `blog/resources/js/app.js`)
- Blog navigation → Authentication state: checks auth (evidence: `blog/resources/js/router.js`)
- Blog navigation → Post state: checks posts (evidence: `blog/resources/js/router.js`)
- Blog navigation → Login and registration: routes to (evidence: `blog/resources/js/router.js`)
- Blog navigation → Post views and editing: routes to (evidence: `blog/resources/js/router.js`)
- Blog navigation → Profile views: routes to (evidence: `blog/resources/js/router.js`)
- Post operations → Posts: reads and writes (evidence: `blog/app/Http/Controllers/PostController.php`)
- Profile operations → Profiles: uses (evidence: `blog/app/Http/Controllers/ProfileController.php`)
- User accounts → Profiles: has profile (evidence: `blog/app/Models/User.php`)
- User accounts → Posts: has posts (evidence: `blog/app/Models/User.php`)
- User accounts → Comments: has comments (evidence: `blog/app/Models/User.php`)
- User accounts → Likes: has likes (evidence: `blog/app/Models/User.php`)
- User accounts → Post views: has views (evidence: `blog/app/Models/User.php`)
- Posts → Comments: has comments (evidence: `blog/app/Models/Post.php`)
- Posts → Likes: has likes (evidence: `blog/app/Models/Post.php`)
- Posts → Post views: has views (evidence: `blog/app/Models/Post.php`)
- Blog visitor → Blog Vue app: uses
- Authentication state → Post operations: requests API
- Catalog operations → Goods: reads and writes (evidence: `shop/app/Http/Controllers/GoodController.php`)
- Order operations → Basket: uses (evidence: `shop/app/Http/Controllers/OrderController.php`)
- Order operations → Goods: uses (evidence: `shop/app/Http/Controllers/OrderController.php`)
- Order operations → Orders: uses (evidence: `shop/app/Http/Controllers/OrderController.php`)
- Goods → Basket: has baskets (evidence: `shop/app/Models/Good.php`)
- Goods → Orders: has orders (evidence: `shop/app/Models/Good.php`)
- Shop visitor → Catalog operations: browses
- Shop visitor → Basket operations: manages basket
- Shop visitor → Order operations: places orders
- Admin access → Catalog operations: manages catalog
