Skip to content

Commit 8336ab7

Browse files
[8.x] Collection Importer (#653)
Co-authored-by: duncanmcclean <duncanmcclean@users.noreply.github.com>
1 parent 5a35a1b commit 8336ab7

File tree

10 files changed

+497
-778
lines changed

10 files changed

+497
-778
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"pixelfear/composer-dist-plugin": "^0.1.5",
4646
"spatie/ignition": "^1.15",
4747
"spatie/invade": "^2.1",
48-
"statamic/cms": "^5.41"
48+
"statamic/cms": "^5.41",
49+
"stillat/proteus": "^4.0"
4950
},
5051
"require-dev": {
5152
"laravel/pint": "^1.0",

docs/resources.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ title: Resources
66

77
For each of the Eloquent models you wish to use with Runway, you’ll need to define a ‘resource’.
88

9-
A resource basically tells Runway about the model and how you’d like it to be configured - which blueprint to use, whether or not it should be manageable in the CP, etc.
9+
A resource basically tells Runway about the model and how you’d like it to be configured - which blueprint to use, whether it should be manageable in the CP, etc.
1010

1111
## Defining resources
1212

13-
You can define resources inside of the configuration file published during installation. It’s located in `config/runway.php`.
13+
You can define resources inside the configuration file published during installation. It’s located in `config/runway.php`.
1414

1515
```php
1616
<?php
@@ -58,6 +58,10 @@ class Order extends Model
5858

5959
Finally, you can start adding fields to your resource's blueprint. To learn more about using Blueprints in Runway, please review the [Blueprints](/blueprints) page.
6060

61+
:::tip Hot Tip
62+
If you're moving a collection to the database, use the `php please runway:import-collection` command. It'll help you set up everything you need, including moving your entries to the database.
63+
:::
64+
6165
## Configuring resources
6266

6367
There’s about a dozen configuration options available for resources, they are all documented below.

docs/upgrade-guides/v7-to-v8.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ To work around this, v8 introduces some changes around how nested fields are con
6666

6767
As an upside of this new approach, nested fields can now be used with Runway's [GraphQL API](/graphql).
6868

69+
## Low impact changes
70+
6971
### Removal of the `cp_icon` config option
7072

7173
The `cp_icon` configuration option has been removed in Runway 8, in favour of being able to change the icon using Statamic's [Nav Preferences](https://statamic.dev/preferences#accessing-preferences) feature.
@@ -79,6 +81,10 @@ The `cp_icon` configuration option has been removed in Runway 8, in favour of be
7981
],
8082
```
8183

84+
### Generate Migrations command has been removed
85+
86+
The `runway:generate-migrations` command has been removed in favour of the new `runway:import-collection` command which handles the entire process of generating Eloquent models, database migrations and importing entries.
87+
8288
## Previous upgrade guides
8389

8490
- [v3.x to v4.0](/upgrade-guides/v3-x-to-v4-0)

0 commit comments

Comments
 (0)