> ## Documentation Index
> Fetch the complete documentation index at: https://runway.duncanmcclean.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Eloquently manage your Eloquent models in Statamic with Runway.

> [card] [Install](https://runway.duncanmcclean.com/installation.md)
>
> Get up and running with Runway in your Statamic site.

> [card] [Resources](https://runway.duncanmcclean.com/resources.md)
>
> Learn more about Resources, the core concept behind Runway.

## Control Panel integration

Runway fits right into the Control Panel - enabling you to create, edit and view your models. In most cases, you'll not notice the difference between an entry in the CP and an Eloquent model in the CP.

* [Review documentation](https://runway.duncanmcclean.com/control-panel.md)

## Front-end routing

Need to show your models on the front-end of your site? No problem - Runway's got that under control. Simply tell Runway the route you'd like to use and it'll serve up the front-end for you.

```php config/runway.php theme={null}
return [
    'resources' => [
        \App\Models\Product::class => [
            'route' => '/products/{{ slug }}',
        ],
    ],
];
```

* [Review documentation](https://runway.duncanmcclean.com/frontend-routing.md)

## Antlers templating

In addition to front-end routing, you may also use Runway's tag to loop through your models and display the results. The tag supports filtering, using Eloquent scopes and sorting.

```antlers Antlers theme={null}
{{ runway:product }}
    <h2>{{ name }}</h2>
    <p>Price: {{ price }}</p>
{{ /runway:product }}
```

```blade Blade theme={null}
<s:runway:product>
    <h2>{{ $name }}</h2>
    <p>Price: {{ $price }}</p>
</s:runway:product>
```

* [Review documentation](https://runway.duncanmcclean.com/templating.md)

## GraphQL API

If you're a GraphQL fan, you're now able to fetch your models via GraphQL. Runway will augment the fields just like you'd expect.

```graphql theme={null}
{
    products(limit: 25, sort: "name") {
        data {
            id
            name
            price
            description
        }
    }
}
```

## REST API

If you don't like GraphQL and would prefer plain old REST, you can do that too. Runway easily integrates with Statamic's REST API.

```php config/runway.php theme={null}
'resources' => [
    'collections' => true,
    // ...
    'runway' => [
        'product' => true,
    ],
],
```

## Search

Runway integrates with Statamic's [Search](https://statamic.dev/search) feature, allowing you to search your Eloquent models in the Control Panel and via the `{{ search:results }}` tag. It's just as simple as adjusting your config file.

```php config/statamic/search.php theme={null}
'indexes' => [
    'myindex' => [
        'driver' => 'local',
        'searchables' => ['collection:blog', 'runway:order'],
    ],
],
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.