statamic-rad-pack/runway
Composer 安装命令:
composer require statamic-rad-pack/runway
包简介
Eloquently manage your database models in Statamic.
README 文档
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:product }}
<h2>{{ name }}</h2>
<p>Price: {{ price }}</p>
{{ /runway:product }}
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, ], ],
Search
Runway integrates with Statamic's 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.
// config/statamic/search.php 'indexes' => [ 'myindex' => [ 'driver' => 'local', 'searchables' => ['collection:blog', 'runway:order'], ], ],
Support
If you find a bug, have some questions 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.
statamic-rad-pack/runway 适用场景与选型建议
statamic-rad-pack/runway 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 223.83k 次下载、GitHub Stars 达 135, 最近一次更新时间为 2024 年 01 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 statamic-rad-pack/runway 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 statamic-rad-pack/runway 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 223.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 135
- 点击次数: 27
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2024-01-12