You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources.mdx
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,19 @@ You may also specify if you want a resource to be 'read only' - eg. users will n
110
110
],
111
111
```
112
112
113
+
### Duplicatable
114
+
115
+
By default, Runway allows models to be duplicated via the Duplicate action in the Control Panel. You can disable this for a resource by setting `duplicatable` to `false`.
116
+
117
+
```php
118
+
'resources' => [
119
+
\App\Models\Order::class => [
120
+
'name' => 'Orders',
121
+
'duplicatable' => false,
122
+
],
123
+
],
124
+
```
125
+
113
126
### Ordering
114
127
115
128
Sometimes you may want to change the order that your models are returned in the Control Panel listing table. You can use the `order_by` and `order_by_direction` configuration options to tell Runway the order you wish models to be returned.
0 commit comments