mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
update
This commit is contained in:
parent
e53a643e3d
commit
1ab37bd478
209 changed files with 79957 additions and 0 deletions
36
my-snippets/codeigniter4/docs/MODELS.md
Normal file
36
my-snippets/codeigniter4/docs/MODELS.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
### Alternate Snippets for Models
|
||||
|
||||
### `[ProjectRoot]/app/Models/*.php`
|
||||
|
||||
### Table of Content
|
||||
|
||||
- [Model Config](#model-config) [new]
|
||||
|
||||
#### Model Config
|
||||
|
||||
- Command
|
||||
```bash
|
||||
ci4:model:config
|
||||
```
|
||||
- Output
|
||||
|
||||
```php
|
||||
protected $table = 'tableName';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
protected $returnType = 'array';
|
||||
protected $useSoftDeletes = true;
|
||||
|
||||
protected $allowedFields = ['name'];
|
||||
|
||||
protected $useTimestamps = false;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = 'updated_at';
|
||||
protected $deletedField = 'deleted_at';
|
||||
|
||||
protected $validationRules = [];
|
||||
protected $validationMessages = [];
|
||||
protected $skipValidation = false;
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue