Skip to content

Commit

Permalink
Mention updating the model in the Runway config
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Dec 18, 2023
1 parent 7a78a96 commit ceea74a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/database-orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ First, in order to customise the Eloquent model, you'll need to create your own
'model' => \DoubleThreeDigital\SimpleCommerce\Orders\OrderModel::class, // [tl! remove]
'model' => \App\Models\Order::class, // [tl! add]
```
3. Finally, update the reference to the `Order` model in the Runway config (`config/runway.php`):

```php
\DoubleThreeDigital\SimpleCommerce\Orders\OrderModel::class => [ // [tl! remove]
\App\Models\Order::class => [ // [tl! remove]
// ...
],
```

And there you go... that's you using a custom version of the Eloquent model.

Expand Down

0 comments on commit ceea74a

Please sign in to comment.