Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions snippets/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,53 @@
" protected \\$appends = ['$0'];"
],
"description": "Appends: The accessors to append to the model's array form."
},
"Laravel Model: Touches": {
"prefix": "Model::tc",
"body": [
"/**",
" * The relationships that should be touched on save.",
" *",
" * @var array",
" */",
" protected $touches = [$0];"
],
"description": "Touches: The relationships that should be touched on save."
},
"Laravel Model: Incrementing": {
"prefix": "Model::i",
"body": [
"/**",
" * Indicates if the IDs are auto-incrementing.",
" *",
" * @var bool",
" */",
" protected $incrementing = ${1:false};"
],
"description": "Incrementing: Indicates if the IDs are auto-incrementing."
},
"Laravel Model: KeyType": {
"prefix": "Model::kt",
"body": [
"/**",
" * The \"type\" of the auto-incrementing ID.",
" *",
" * @var string",
" */",
" protected $keyType = ${1:'int'};"
],
"description": "KeyType: The \"type\" of the auto-incrementing ID."
},
"Laravel Model: PerPage": {
"prefix": "Model::pp",
"body": [
"/**",
" * The number of models to return for pagination.",
" *",
" * @var int",
" */",
" protected $perPage = $0;"
],
"description": "PerPage: The number of models to return for pagination."
}
}