Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkingshott committed Feb 6, 2022
1 parent 2d28526 commit a7f5359
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ Trigger::table('posts');

By default, the class will generate a name for the trigger using the following convention:

> trigger_{TABLE}_{TIME}_{EVENT}
```
trigger_{TABLE}_{TIME}_{EVENT}
```

However, since trigger names must be unique across the database, if you were to create two triggers that used the same event and time (these concepts are covered in the next section), then you'd get an error.

Expand All @@ -51,7 +53,9 @@ Trigger::table('posts')->key('custom');

When a key is specified, the trigger name is derived from the following convention:

> trigger_{TABLE}_{KEY}_{TIME}_{EVENT}
```
trigger_{TABLE}_{KEY}_{TIME}_{EVENT}
```

### Event and time

Expand Down

0 comments on commit a7f5359

Please sign in to comment.