New: Learn Statamic on Laracasts!

Runway

Addon by Duncan McClean

Runway Main Screenshot

Runway gives you the ability to display & manage your Eloquent models in Statamic.

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.

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.

// config/runway.php

return [
    'resources' => [
        \App\Models\Product::class => [
            'route' => '/products/{{ slug }}',
        ],
    ],
];

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.

{{ runway:products }}
    <h2>{{ name }}</h2>
    <p>Price: {{ price }}</p>
{{ /runway:products }}

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.

{
  products(limit: 25, sort: "name") {
    data {
      id
      name
      price
      description
    }
  }
}

Installation

First, require Runway as a Composer dependency:

composer require doublethreedigital/runway

Once installed, you’ll want to publish the default configuration file.

php artisan vendor:publish --tag="runway-config"

Now, configure each of the 'resources' you'd like to be available through Runway.

Documentation

Visit the Runway website to read the documentation & knowledge base articles.

Support

Runway is a free addon, because of this there is no direct support channel. If you have a feature request or experience a bug, please open a GitHub Issue and it'll be looked into over the next week or two.

Only the latest version of this addon is supported. If you open a bug report using an old version, your issue will be closed.

Sponsor me!

Some of my addons (including this one) are free & open-source, meaning you can use them in your site without buying any licenses.

However, there is a cost from my perspective to maintain this addon (fixing new bugs, adding new features, answering questions). That all takes time. I've spent over 88 hours of my own time maintaining this addon over the past year.

If you use this software on your projects & can afford it, I'd appreciate it if you'd consider sponsoring me, even if it's just a couple dollars a month.