Skip to content

Conversation

@MujahidAbbas
Copy link
Owner

Summary

  • Add complete user authentication using Laravel Breeze with Livewire stack
  • Replace all hardcoded user_id = 1 with auth()->id() across the codebase
  • Protect all project routes with auth middleware
  • Add authorization checks to all Livewire components using ProjectPolicy

Features

  • Login/Registration: Full authentication flow with Breeze
  • Password Reset: Email-based password recovery
  • Profile Management: Update profile info and delete account
  • Route Protection: All project routes require authentication
  • Authorization: Projects are scoped to their owners
  • User Menu: Sidebar displays user info with logout button

Technical Changes

  • Installed Laravel Breeze with Livewire stack
  • Added AuthorizesRequests trait to base Controller
  • Added authorization checks to: Prd, Tech, KanbanBoard, Export, SettingsModal components
  • Updated routes/web.php with auth middleware group
  • Welcome page redirects based on auth status

Testing

All 43 tests pass including new auth tests.

- Install Laravel Breeze with Livewire stack for login, registration,
  password reset, and profile management
- Replace all hardcoded user_id = 1 with auth()->id() across components
- Add auth middleware to protect all project routes
- Enable authorization checks in ProjectExportController
- Add authorization checks to all Livewire tab components (Prd, Tech,
  KanbanBoard, Export) to prevent unauthorized access
- Add authorization checks to SettingsModal component
- Add AuthorizesRequests trait to base Controller
- Add user menu with logout button to sidebar layout
- Configure welcome page to redirect based on auth status
  (authenticated -> /projects, guest -> /login)
- Update all auth views and tests to use projects.index instead of
  dashboard route
@MujahidAbbas MujahidAbbas merged commit 47911d2 into main Jan 1, 2026
0 of 2 checks passed
@MujahidAbbas MujahidAbbas deleted the feature/user-authentication branch January 1, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants