3
3
### Query
4
4
* Create an instance of Database Model:
5
5
6
+ > [ !IMPORTANT]
7
+ > Protect ` Storage ` folder!
8
+
6
9
``` php
7
10
$message = new Message();
8
11
```
@@ -96,10 +99,10 @@ $message->truncate();
96
99
---
97
100
### Manage Model
98
101
``` bash
99
- php laragram make:jsonModel {model_name}
102
+ php laragram make:json-model {model_name}
100
103
```
101
104
``` bash
102
- php laragram make:jsonModel User
105
+ php laragram make:json-model User
103
106
```
104
107
---
105
108
### Model property
@@ -119,18 +122,18 @@ protected array $guarded = ['id'];
119
122
120
123
* Create new table
121
124
```
122
- php laragram make:jsonMigration {migration_name} --create={table_name}
125
+ php laragram make:json-migration {migration_name} --create={table_name}
123
126
```
124
127
```
125
- php laragram make:jsonMigration create_users_table --create=users
128
+ php laragram make:json-migration create_users_table --create=users
126
129
```
127
130
128
131
* Edit table
129
132
```
130
- php laragram make:jsonMigration {migration_name} --table={table_name}
133
+ php laragram make:json-migration {migration_name} --table={table_name}
131
134
```
132
135
```
133
- php laragram make:jsonMigration edit_users_table --table=users
136
+ php laragram make:json-migration edit_users_table --table=users
134
137
```
135
138
136
139
> Note:
@@ -196,8 +199,8 @@ JsonSchema::table('column_name', function (JsonBlueprint $table) {
196
199
### Migrate
197
200
198
201
```
199
- php laragram migrate: json
202
+ php laragram json-migrate
200
203
```
201
204
---
202
205
### [ ⬅️ 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