Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Nov 27, 2023
1 parent b85c0e4 commit 071ee16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Use this command if you are in PowerShell on Windows (e.g. in VS Code):

## Usage

- [Custom Foreign Keys](#custom-foreign-keys)
- [Custom Local Keys](#custom-local-keys)
- [Table Aliases](#table-aliases)
- [Soft Deleting](#soft-deleting)

Expand Down Expand Up @@ -69,6 +71,8 @@ class Comment extends Model
}
```

### Custom Foreign Keys

You can specify custom foreign keys as the fifth argument:

```php
Expand All @@ -89,6 +93,8 @@ class Comment extends Model
}
```

### Custom Local Keys

You can specify custom local keys for the relations:

`VendorCustomerAddress` → belongs to → `VendorCustomer` in `VendorCustomerAddress.vendor_customer_id`
Expand Down

0 comments on commit 071ee16

Please sign in to comment.