I have created my first extension. This extension helps to work with JSON.
Add a picture of all the blocks
Write instructions to use your extension
First Initialize the JSON object.
Then you can use getKey and setKey methods to get and set key values.
Download link here
pka5667.json.aix (4.5 KB)
6 Likes
MyDFMax
(MyDFMax)
#4
how to use array json
ex:
{
“user”: {
“id”: 1,
“name”: “adawd”,
“email”: “[email protected]”,
“email_verified_at”: “2023-06-05T23:06:38.000000Z”,
“two_factor_confirmed_at”: null,
“status”: “active”,
“current_team_id”: null,
“profile_photo_path”: null,
“created_at”: “2023-06-05T23:06:38.000000Z”,
“updated_at”: “2023-06-05T23:06:38.000000Z”,
“profile_photo_url”: “https://ui-avatars.com/api/?name=S&color=7F9CF5&background=EBF4FF”,
“roles”: [
{
“id”: 2,
“name”: “Pengawas”,
“guard_name”: “web”,
“created_at”: “2023-06-05T23:06:37.000000Z”,
“updated_at”: “2023-06-05T23:06:37.000000Z”,
“pivot”: {
“model_id”: 1,
“role_id”: 2,
“model_type”: “App\Models\Users\User”
}
},
{
“id”: 1,
“name”: “Developer”,
“guard_name”: “web”,
“created_at”: “2023-06-05T23:06:36.000000Z”,
“updated_at”: “2023-06-05T23:06:36.000000Z”,
“pivot”: {
“model_id”: 1,
“role_id”: 1,
“model_type”: “App\Models\Users\User”
}
}
]
},
“roles”: [
“Developer”
…
],
“role_permissions”: [
“view_proyek”,
“create_proyek”,
“update_proyek”,
“delete_proyek”,
…
],
“user_permissions”:
}
You look at these two topics, it will help you.
Or
CYBEROXO