doublethreedigital / runway
Eloquently manage your database models in Statamic.
Installs: 112 948
Dependents: 1
Suggesters: 0
Security: 0
Stars: 90
Watchers: 4
Forks: 33
Open Issues: 0
Requires
- php: ^8.1
- pixelfear/composer-dist-plugin: ^0.1.5
- statamic/cms: ^4.0
Requires (Dev)
- nunomaduro/collision: ^6.1
- orchestra/testbench: ^7.0
- rector/rector: ^0.14.7
- spatie/test-time: ^1.2
- 6.x-dev
- 5.x-dev
- v5.6.1
- v5.6.0
- v5.5.3
- v5.5.2
- v5.5.1
- v5.5.0
- v5.4.1
- v5.4.0
- v5.3.3
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- 4.x-dev
- v4.2.10
- v4.2.9
- v4.2.8
- v4.2.7
- v4.2.6
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.2
- v4.1.1
- v4.1.0
- v4.0.0
- 3.x-dev
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- 2.x-dev
- v2.6.7
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- 2.3.x-dev
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- 2.2.x-dev
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- 2.1.x-dev
- v2.1.37
- v2.1.36
- v2.1.35
- v2.1.34
- v2.1.33
- v2.1.32
- v2.1.31
- v2.1.30
- v2.1.29
- v2.1.28
- v2.1.27
- v2.1.26
- v2.1.25
- v2.1.24
- v2.1.23
- v2.1.22
- v2.1.21
- v2.1.20
- v2.1.19
- v2.1.18
- v2.1.17
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- 2.0.x-dev
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-beta.2
- v2.0.0.beta-1
- v1.1.0
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-rad-pack
- dev-blueprints
This package is auto-updated.
Last update: 2024-01-12 15:30:17 UTC
README
Runway gives you the ability to display & manage your Eloquent models in Statamic.
"With Runway I was able to quickly make a beautiful admin panel that administrators can use. If Runway didn't exist, it would have taken me a week or two to build something that wasn't quite as nice. Thanks for saving me days and days of work Duncan!"
Features
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 } } }
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.
'resources' => [ 'collections' => true, // ... 'runway' => [ 'product' => true, ], ],
Support
If you find a bug, have some question or have a feature request, please open a GitHub Issue or Discussion.
Please note: only the latest version of this addon is supported. Any bug reports regarding an old version will be closed.
Contributing
Contributions are welcome, and are accepted via pull requests. You should follow this process when contributing:
- Fork the repository
- Make your code change
- Open a pull request, detailing the changes you've made.
If your pull request is a Work in Progress, please mark your pull request as a draft.
Security
If you've found a bug regarding security please email security@doublethree.digital instead of using the issue tracker.