Skip to content

Commit dbbe027

Browse files
authored
Update json.md
1 parent 8ae2833 commit dbbe027

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Diff for: json.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
### Query
44
* Create an instance of Database Model:
55

6+
> [!IMPORTANT]
7+
> Protect `Storage` folder!
8+
69
```php
710
$message = new Message();
811
```
@@ -96,10 +99,10 @@ $message->truncate();
9699
---
97100
### Manage Model
98101
```bash
99-
php laragram make:jsonModel {model_name}
102+
php laragram make:json-model {model_name}
100103
```
101104
```bash
102-
php laragram make:jsonModel User
105+
php laragram make:json-model User
103106
```
104107
---
105108
### Model property
@@ -119,18 +122,18 @@ protected array $guarded = ['id'];
119122

120123
* Create new table
121124
```
122-
php laragram make:jsonMigration {migration_name} --create={table_name}
125+
php laragram make:json-migration {migration_name} --create={table_name}
123126
```
124127
```
125-
php laragram make:jsonMigration create_users_table --create=users
128+
php laragram make:json-migration create_users_table --create=users
126129
```
127130

128131
* Edit table
129132
```
130-
php laragram make:jsonMigration {migration_name} --table={table_name}
133+
php laragram make:json-migration {migration_name} --table={table_name}
131134
```
132135
```
133-
php laragram make:jsonMigration edit_users_table --table=users
136+
php laragram make:json-migration edit_users_table --table=users
134137
```
135138

136139
> Note:
@@ -196,8 +199,8 @@ JsonSchema::table('column_name', function (JsonBlueprint $table) {
196199
### Migrate
197200

198201
```
199-
php laragram migrate:json
202+
php laragram json-migrate
200203
```
201204
---
202205
### [⬅️ Return to Databases](https://github.com/laraXgram/Document/blob/v1.10/databases.md)
203-
### [⬅️⬅️ Return to home](https://github.com/laraXgram/Document/blob/v1.10/readme.md)
206+
### [⬅️⬅️ Return to home](https://github.com/laraXgram/Document/blob/v1.10/readme.md)

0 commit comments

Comments
 (0)