Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 5998e08

Browse files
committed
Add Deleted At const, Formatting
1 parent 082e116 commit 5998e08

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,33 @@ Quickly get your models up and running with Laravel Model Snippets. Start with `
1010

1111
| Snippet | Purpose |
1212
| ---------------------------- | ---------------------------------- |
13-
| `Model::t` | Table |
14-
| `Model::pk` | Primary Key |
15-
| `Model::ts` | Timestamps |
16-
| `Model::df` | Date Format |
17-
| `Model::con` | Database Connection |
18-
| `Model::c` | Casts Attributes |
19-
| `Model::f` | Mass Assignment (Fillable) |
20-
| `Model::g` | Guard Attributes |
21-
| `Model::d` | Dates |
13+
| `Model::a` | Appends |
2214
| `Model::b` | Boot |
23-
| `Model::s` | Local Scope |
24-
| `Model::oo` | One to One Relationship |
2515
| `Model::bt` | Belongs To Relationship |
26-
| `Model::om` | One to Many Relationship |
27-
| `Model::mm` | Many to Many Relationship |
2816
| `Model::btm` | Belongs To Many Relationship |
17+
| `Model::c` | Casts Attributes |
18+
| `Model::cat` | Created At |
19+
| `Model::con` | Database Connection |
20+
| `Model::d` | Dates |
21+
| `Model::dat` | Deleted At |
22+
| `Model::df` | Date Format |
23+
| `Model::f` | Mass Assignment (Fillable) |
24+
| `Model::g` | Guard Attributes |
25+
| `Model::h` | Hidden Attributes |
2926
| `Model::hmt` | Has Many Through Relationship |
3027
| `Model::hot` | Has One Through Relationship (5.8) |
31-
| `Model::h` | Hidden Attributes |
32-
| `Model::v` | Visible Attributes |
33-
| `Model::a` | Appends |
34-
| `Modal::tc` | Relationship Touches |
3528
| `Model::i` | Incrementing |
36-
| `Modal::pp` | Per Page Pagination |
37-
| `Modal::cat` | Created At |
38-
| `Modal::uat` | Updated At |
29+
| `Model::mm` | Many to Many Relationship |
30+
| `Model::om` | One to Many Relationship |
31+
| `Model::oo` | One to One Relationship |
32+
| `Model::pk` | Primary Key |
33+
| `Model::pp` | Per Page Pagination |
34+
| `Model::s` | Local Scope |
35+
| `Model::t` | Table |
36+
| `Model::tc` | Relationship Touches |
37+
| `Model::ts` | Timestamps |
38+
| `Model::uat` | Updated At |
39+
| `Model::v` | Visible Attributes |
3940

4041
## Changelog
4142

snippets/model.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,5 +319,17 @@
319319
"const UPDATED_AT = '${1:updated_at}';$0"
320320
],
321321
"description": "Updated At: The name of the \"updated at\" column."
322+
},
323+
"Laravel Model: Deleted At": {
324+
"prefix": "Model::dat",
325+
"body": [
326+
"/**",
327+
" * The name of the \"deleted at\" column.",
328+
" *",
329+
" * @var string",
330+
" */",
331+
"const DELETED_AT = '${1:deleted_at}';$0"
332+
],
333+
"description": "Deleted At: The name of the \"deleted at\" column."
322334
}
323335
}

0 commit comments

Comments
 (0)