How mahmoud-borkhsh/chat-pusher-and-livewire works
This Laravel application provides authenticated, browser-based chat: users register or sign in, enter Livewire chat screens, and exchange conversation messages. The sampled source confirms route registration, authentication, chat components’ model dependencies, and user/message models. Notifications and the Pusher-oriented realtime client are retained as product capabilities indicated by the repository name and module tree, but their runtime wiring was not fully sampled; those links are marked unverified or omitted.
Main entry points: web.php Web routes · Chat.php Chat interaction · Conversation.php Conversation model · RegisteredUserController.php Authentication handlers
Components 23
Request and routing
- Laravel entry
chat-pusher-and-livewire/public/index.php - App bootstrap
chat-pusher-and-livewire/bootstrap/app.php - HTTP middleware
chat-pusher-and-livewire/app/Http/Kernel.php - Route registration
chat-pusher-and-livewire/app/Providers/RouteServiceProvider.php - Web routes
chat-pusher-and-livewire/routes/web.php
Accounts and profiles
- Account routes
chat-pusher-and-livewire/routes/auth.php - Authentication handlers
chat-pusher-and-livewire/app/Http/Controllers/Auth/RegisteredUserController.php - Login validation
chat-pusher-and-livewire/app/Http/Requests/Auth/LoginRequest.php - Profile management
chat-pusher-and-livewire/app/Http/Controllers/ProfileController.php - Controller base
chat-pusher-and-livewire/app/Http/Controllers/Controller.php - User model
chat-pusher-and-livewire/app/Models/User.php
Live chat
- Chat interaction
chat-pusher-and-livewire/app/Http/Livewire/Chat/Chat.php - Chat screen
chat-pusher-and-livewire/app/Http/Livewire/Chat/Index.php - Message panel
chat-pusher-and-livewire/app/Http/Livewire/Chat/ChatBox.php - Conversation list
chat-pusher-and-livewire/app/Http/Livewire/Chat/ChatList.php - User discovery
chat-pusher-and-livewire/app/Http/Livewire/Users.php - Conversation model
chat-pusher-and-livewire/app/Models/Conversation.php - Message model
chat-pusher-and-livewire/app/Models/Message.php
Realtime notifications
- Message sent event
chat-pusher-and-livewire/app/Notifications/MessageSent.php - Message read event
chat-pusher-and-livewire/app/Notifications/MessageRead.php - Realtime browser client
chat-pusher-and-livewire/resources/js/bootstrap.js - Pusher service
Other components
- Browser user
Connections 28
- Browser user → Laravel entry: sends request
chat-pusher-and-livewire/public/index.php - Laravel entry → App bootstrap: loads app
chat-pusher-and-livewire/public/index.php - App bootstrap → HTTP middleware: binds kernel
chat-pusher-and-livewire/bootstrap/app.php - Route registration → Web routes: registers routes
chat-pusher-and-livewire/app/Providers/RouteServiceProvider.php - Web routes → Account routes: includes routes
chat-pusher-and-livewire/routes/web.php - Account routes → Authentication handlers: dispatches auth
chat-pusher-and-livewire/routes/auth.php - Authentication handlers → Login validation: uses validation
- Authentication handlers → User model: creates account
chat-pusher-and-livewire/app/Http/Controllers/Auth/RegisteredUserController.php - Web routes → Profile management: dispatches profile
chat-pusher-and-livewire/routes/web.php - Profile management → User model: updates account
chat-pusher-and-livewire/app/Http/Controllers/ProfileController.php - Authentication handlers → Controller base: extends
chat-pusher-and-livewire/app/Http/Controllers/Auth/RegisteredUserController.php - Web routes → Chat screen: dispatches chat
chat-pusher-and-livewire/routes/web.php - Web routes → Chat interaction: dispatches chat
chat-pusher-and-livewire/routes/web.php - Web routes → User discovery: dispatches discovery
chat-pusher-and-livewire/routes/web.php - Chat screen → Chat interaction: renders
chat-pusher-and-livewire/app/Http/Livewire/Chat/Index.php - Chat interaction → Conversation model: uses model
chat-pusher-and-livewire/app/Http/Livewire/Chat/Chat.php - Chat interaction → Message model: uses model
chat-pusher-and-livewire/app/Http/Livewire/Chat/Chat.php - User discovery → Conversation model: uses model
chat-pusher-and-livewire/app/Http/Livewire/Users.php - User discovery → User model: queries users
chat-pusher-and-livewire/app/Http/Livewire/Users.php - Message model → Conversation model: references
chat-pusher-and-livewire/app/Models/Message.php - User model → Conversation model: defines relation
chat-pusher-and-livewire/app/Models/User.php - Message panel → Message model: uses messages
- Conversation list → Conversation model: shows conversations
- Chat interaction → Message sent event: may dispatch
- Chat interaction → Message read event: may dispatch
- Realtime browser client → Pusher service: may connect
- Message sent event → Pusher service: may broadcast
- Message read event → Pusher service: may broadcast