<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>

<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>

## About Laravel

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](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

Laravel is accessible, powerful, and provides tools required for large, robust applications.

## Roboflow Inspection Scan

The `/inspections` upload flow sends selected images to the Roboflow workflow `Detect, Count, and Visualize 5` through the Laravel backend. The browser never receives the Roboflow API key.

Configure these environment variables before scanning:

```env
ROBOFLOW_API_KEY=
ROBOFLOW_API_URL=https://serverless.roboflow.com
ROBOFLOW_WORKSPACE=farizs-workspace-sj3e2
ROBOFLOW_WORKFLOW=detect-count-and-visualize-5
ROBOFLOW_TIMEOUT=45
ROBOFLOW_RETRIES=2
```

The backend endpoint is `POST /inspections/scan`. It accepts up to 20 image files in `images[]`, sends each image as a base64 input to Roboflow, and returns the workflow output keys plus sanitized outputs. Image-shaped workflow outputs are decoded into `storage/app/public/roboflow` and returned as storage URLs.

The web UI supports English and Indonesian through the `EN/ID` switch in the header. The selected locale is stored in the session.

Advanced report analysis can optionally run Groq after Roboflow. Roboflow is always the first-stage output; users can add up to three Groq model outputs for report generation. Configure Groq with:

```env
GROQ_API_KEY=
GROQ_API_URL=https://api.groq.com/openai/v1
GROQ_TIMEOUT=60
GROQ_RETRIES=2
```

The report model options include the available Groq Chat Completions models from the current free-tier project limits: Llama 4 Scout, GPT OSS 120B, GPT OSS 20B, Qwen3 32B, Llama 3.3 70B, Llama 3.1 8B, Compound, Compound Mini, Allam 2 7B, Safety GPT OSS 20B, and the Prompt Guard models. Llama 4 Scout is the default vision model. If a selected model returns a rate-limit or quota response, the backend automatically falls back to the next configured model until one succeeds. Users can also choose report focus points such as materials, labor, urgency, safety, and preventive maintenance; those points are sent to Groq and shown on the full report. Reports store the raw Roboflow/Groq data for history, but the UI shows only inspection-oriented summaries, findings, images, and repair estimates.

Run the smoke test with:

```bash
php artisan test --filter=RoboflowWorkflowTest
```

## Learning Laravel

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

In addition, [Laracasts](https://laracasts.com) 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.

You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.

## Agentic Development

Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:

```bash
composer require laravel/boost --dev

php artisan boost:install
```

Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
