# Flutter

> Integrate Laravel REST API with your Flutter application using the community-maintained laravel_rest_api_flutter package.

<note>

This is a **community package**, not an official Laravel REST API integration. It is maintained independently by [xefi](https://github.com/xefi).

</note>

## Overview

The [`laravel_rest_api_flutter`](https://pub.dev/packages/laravel_rest_api_flutter) package provides a clean, typed integration between your Flutter app and a Laravel REST API backend. It supports searching, mutating, deleting, and triggering actions.

The full documentation is available at **xefi.github.io/laravel-rest-api-flutter-doc**.

## Installation

```bash
flutter pub add laravel_rest_api_flutter
```

## Features

- **Search** — Query and filter resources with a typed builder
- **Mutate** — Create, update, and manage related records
- **Actions** — Trigger custom backend actions
- **Delete / Restore / Force Delete** — Full resource lifecycle support
- **Responses & Gates** — Handle typed responses and authorization gates
- **Testing utilities** — Built-in support for unit testing repositories

<style>

html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}

</style>

---

- [pub.dev](https://pub.dev/packages/laravel_rest_api_flutter)
- [Documentation](https://xefi.github.io/laravel-rest-api-flutter-doc/)
