How rohitvispute2151/laravel_blog works
This is a Laravel blog application: visitors browse and filter posts, read individual posts, comment, register or sign in, and subscribe to a newsletter; administrators manage posts. The map follows documented web routing into controllers, then shows only model and service relationships visible in the supplied excerpts or source index. View and database wiring is not fully sampled, so those links are omitted rather than inferred.
Main entry points: web.php Web routes · Post.php Post model · AppServiceProvider.php Service binding · PostController.php Post browsing
Components 16
Request routing
- Web routes
routes/web.php
Blog content
- Post browsing
app/Http/Controllers/PostController.php - Post model
app/Models/Post.php - Category model
app/Models/Category.php - Comment handling
app/Http/Controllers/PostCommentsController.php - Comment model
app/Models/Comment.php - Post administration
app/Http/Controllers/AdminPostController.php
Accounts and admin
- Sign-in
app/Http/Controllers/SessionsController.php - Registration
app/Http/Controllers/RegisterController.php - User model
app/Models/User.php
Newsletter
- Newsletter signup
app/Http/Controllers/NewsletterController.php - Newsletter service
app/Services/Newsletter.php - Mailchimp adapter
app/Services/MailchimpNewsletter.php - Service binding
app/Providers/AppServiceProvider.php
Other components
- Visitor
- Mailchimp
Connections 18
- Visitor → Web routes: sends requests
- Web routes → Post browsing: routes to
routes/web.php - Web routes → Comment handling: routes to
routes/web.php - Web routes → Post administration: routes to
routes/web.php - Web routes → Sign-in: routes to
routes/web.php - Web routes → Registration: routes to
routes/web.php - Web routes → Newsletter signup: routes to
routes/web.php - Post browsing → Post model: queries
app/Http/Controllers/PostController.php - Post administration → Post model: creates and updates
app/Http/Controllers/AdminPostController.php - Comment handling → Post model: loads post
app/Http/Controllers/PostCommentsController.php - Post model → Category model: belongs to
app/Models/Post.php - Post model → Comment model: has many
app/Models/Post.php - Post model → User model: belongs to author
app/Models/Post.php - Registration → User model: creates account
app/Http/Controllers/RegisterController.php - Newsletter signup → Newsletter service: subscribes email
app/Http/Controllers/NewsletterController.php - Service binding → Newsletter service: binds implementation
app/Providers/AppServiceProvider.php - Service binding → Mailchimp adapter: constructs
app/Providers/AppServiceProvider.php - Mailchimp adapter → Mailchimp: uses API client