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

Commit 4acb540

Browse files
committed
Add missing options
This will add the touches, incrementing, keyType and perPage implementations.
1 parent c4d4280 commit 4acb540

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

snippets/model.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,5 +237,54 @@
237237
" protected \\$appends = ['$0'];"
238238
],
239239
"description": "Appends: The accessors to append to the model's array form."
240+
},
241+
"Laravel Model: Touches": {
242+
"prefix": "Model::tc",
243+
"body": [
244+
"/**",
245+
" * The relationships that should be touched on save.",
246+
" *",
247+
" * @var array",
248+
" */",
249+
" protected $touches = [$0];"
250+
],
251+
"description": "Touches: The relationships that should be touched on save."
252+
},
253+
"Laravel Model: Incrementing": {
254+
"prefix": "Model::i",
255+
"body": [
256+
"/**",
257+
" * Indicates if the IDs are auto-incrementing.",
258+
" *",
259+
" * @var bool",
260+
" */",
261+
" protected $incrementing = ${1:false};"
262+
],
263+
"description": "Incrementing: Indicates if the IDs are auto-incrementing."
264+
},
265+
"Laravel Model: KeyType": {
266+
"prefix": "Model::kt",
267+
"body": [
268+
"/**",
269+
" * The \"type\" of the auto-incrementing ID.",
270+
" *",
271+
" * @var string",
272+
" */",
273+
" protected $keyType = ${1:'int'};"
274+
],
275+
"description": "KeyType: The \"type\" of the auto-incrementing ID."
276+
},
277+
"Laravel Model: PerPage": {
278+
"prefix": "Model::pp",
279+
"body": [
280+
"/**",
281+
" * The number of models to return for pagination.",
282+
" *",
283+
" * @var int",
284+
" */",
285+
" protected $perPage = $0;"
286+
],
287+
"description": "PerPage: The number of models to return for pagination."
240288
}
289+
241290
}

0 commit comments

Comments
 (0)