Comments (4)
Out of interest, if you run php please runway:rebuild-uris
and go back to that page, does the button show?
from runway.
I can confirm the php please runway:rebuild-uris
fixes it.
from runway.
Actually, there should already be a 'Visit URL' button there so this is probably more of a bug than anything else. See here
Can you share your Runway config and your model? We can probably look into this tomorrow 👀
from runway.
Interesting, I will take a look at that.
Here's my code for future reference.
\App\Models\MyModel::class => [
'name' => 'My Model',
'hidden' => true,
// 'icon' => '',
'blueprint' => [
'sections' => [
'main' => [
'fields' => [
[
'handle' => 'title',
'field' => [
'type' => 'text',
'validate' => 'required',
],
],
[
'handle' => 'body',
'field' => [
'type' => 'markdown',
'validate' => '',
],
],
[
'handle' => 'images',
'field' => [
'type' => 'assets',
'container' => 'assets',
'validate' => '',
],
],
[
'handle' => 'bard_content',
'field' => [
'type' => 'bard',
'display' => 'My bard content'
],
],
],
],
'sidebar' => [
'fields' => [
[
'handle' => 'slug',
'field' => [
'type' => 'slug',
'validate' => 'required',
],
],
],
]
],
],
'listing' => [
'columns' => [
'title',
],
'sort' => [
'column' => 'title',
'direction' => 'asc',
],
],
'route' => '/models/{{ slug }}',
'template' => 'models.show',
],
<?php
namespace App\Models;
use DoubleThreeDigital\Runway\Routing\Traits\RunwayRoutes;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MyModel extends Model implements Responsable
{
use RunwayRoutes;
// protected $guarded = [];
protected $casts = [
'bard_content' => 'json',
// 'published_at' => 'datetime',
];
}
from runway.
Related Issues (20)
- Belongs to relationship does not save when editing from a drawer
- Link Existing button not working for Runway custom resources.
- Link Existing button not working for Runway custom resources. HOT 1
- MorphToMany relationships not displaying in front end. HOT 4
- RunwayRoutes trait throws a "Maximum call stack size" exception HOT 8
- ResourceController::getPrimaryColumn(): Return value must be of type string, null returned HOT 3
- PublishForm overwriting values in nested/stacked context HOT 2
- Augmentation N+1 query issue on frontend HOT 5
- Upgrade created empty blueprints HOT 3
- Listing models is slow HOT 7
- Has Many relationship seems to have broke from v5 -> v6 HOT 11
- Resource listing sort order is not applied correctly HOT 1
- Accessing a runway model from a non-runway collection HOT 2
- User column view preferences interfere with Runway finding custom primaryKey HOT 4
- Generated blueprint error on Float values
- Empty response for Assets on entry view route HOT 2
- Not compatible with statamic/eloquent-driver HOT 1
- N+1 queries in ResourceActionController HOT 1
- Model accessors shouldn't be orderable in listing table
- CP Nav Item outside of Content Section when using Translations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runway.