mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-28 03:30:05 +02:00
update
This commit is contained in:
parent
e53a643e3d
commit
1ab37bd478
209 changed files with 79957 additions and 0 deletions
28
my-snippets/codeigniter4/snippets/php_models.json
Normal file
28
my-snippets/codeigniter4/snippets/php_models.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"Codeigniter4_Model_Config": {
|
||||
"prefix": "ci4:model:config",
|
||||
"lang": ["php"],
|
||||
"body": [
|
||||
"protected \\$table = '${1:tableName}';",
|
||||
"protected \\$primaryKey = '${2:id}';",
|
||||
"",
|
||||
"protected \\$useAutoIncrement = ${3:true};",
|
||||
"",
|
||||
"protected \\$returnType = '${4:array}';",
|
||||
"protected \\$useSoftDeletes = ${5:false};",
|
||||
"",
|
||||
"protected \\$allowedFields = ['${6:name}'];",
|
||||
"",
|
||||
"protected \\$useTimestamps = ${7:true};",
|
||||
"protected \\$createdField = '${8:created_at}';",
|
||||
"protected \\$updatedField = '${9:updated_at}';",
|
||||
"protected \\$useTimestamps = '${10:deleted_at}';",
|
||||
"",
|
||||
"protected \\$validationRules = ${11:[]};",
|
||||
"protected \\$validationMessages = ${12:[]};",
|
||||
"protected \\$skipValidation = ${13:false};",
|
||||
"$0"
|
||||
],
|
||||
"description": "CodeIgniter 4 - Make Model Configuring"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue