ComplainApp is a lightweight complaint tracking and management system built with Laravel. It allows clients to submit complaints, upload evidence, communicate with staff via threaded conversations, and track the status of their complaints. Staff members and department heads can review complaints, provide feedback, and escalate to senior boards.
- Multi-role system: Clients, Staff Members, Department Heads, Admin
- Complaint submission with multiple evidence files
- Secure file serving for previews and downloads
- Conversation/chat per complaint (client ↔ admin/staff)
- Status workflow (pending, in progress, resolved, closed)
- Staff feedback and complaint assignment
- Modern responsive UI with light/dark mode support
- Backend: PHP 8.x, Laravel 9.x
- Frontend: Blade templates, Tailwind CSS, vanilla JavaScript
- Database: MySQL (schema included under
database/schema) - Dev tools: Vite, NPM/Yarn, Composer
These steps assume you already have PHP, Composer, Node.js and a MySQL server installed.
-
Clone the repository
git clone
-
Install PHP dependencies
composer install
-
Install frontend dependencies and build assets
npm install npm run build
-
Copy the example environment file and configure
cp .env.example .env php artisan key:generate
Update
.envwith your DB credentials and other config. -
Run database migrations and seeders
php artisan migrate --seed
-
Serve the app locally
php artisan serve
Open http://127.0.0.1:8000 in your browser.
- Client complaint listing:
/client/past-complaints(view) - Client complaint form:
/client/complain(create) - Secure evidence preview/download routes are registered under
/client/complaint/{id}/evidence/{fileIndex}and similar patterns for staff/admin
Place two screenshots in the repository under screenshots/ using these exact filenames:
screenshots/light-mode.png— screenshot of the UI in light modescreenshots/dark-mode.png— screenshot of the UI in dark mode
You can add them to this README by placing the PNGs in screenshots/ and the images will automatically render below.
If you prefer a different folder layout, update the image paths accordingly.
-
If you see 404s when loading evidence files, ensure your storage link is created:
php artisan storage:link
-
When editing Blade templates or assets, clear caches if necessary:
php artisan view:clear; php artisan cache:clear; php artisan route:clear
Contributions are welcome. Please open an issue to discuss major changes before sending a PR.
Specify your license here (if any).
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.

