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.
1// config/runway.php2 3return [4 'resources' => [5 \App\Models\Product::class => [6 'route' => '/products/{{ slug }}',7 ],8 ],9];
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.
1{{ runway:products }}2 <h2>{{ name }}</h2>3 <p>Price: {{ price }}</p>4{{ /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.
1{ 2 products(limit: 25, sort: "name") { 3 data { 4 id 5 name 6 price 7 description 8 } 9 }10}