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.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ title: Resources
6
6
7
7
For each of the Eloquent models you wish to use with Runway, you’ll need to define a ‘resource’.
8
8
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.
10
10
11
11
## Defining resources
12
12
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`.
14
14
15
15
```php
16
16
<?php
@@ -58,6 +58,10 @@ class Order extends Model
58
58
59
59
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.
60
60
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
+
61
65
## Configuring resources
62
66
63
67
There’s about a dozen configuration options available for resources, they are all documented below.
0 commit comments