Tag: json

  • Post Views: 21 1. The existing code is implemented as follows 2. The final generated JSON data structure is as follows: 3. The Blade {{ }} statement is automatically passed through PHP’s HtmlSpecialChars function to prevent XSS attacks. Therefore, you need {!! !!} to prevent the “(double quotes) from being converted into HTML entities. 4. However, the generated JSON structure…

  • Post Views: 17 1. The original format of JSON data is as follows. The order of its key names is as follows: TexGetCux, QKGYGZ2st, YE9GC1KXT, Q1YQZ2RBI. as shown in Figure 1 2. Execute the code to insert the database as follows, print $extra[‘schema’] 3. Print $extra[‘schema’], which is equal to the original format of JSON data. as shown in Figure…

  • Post Views: 15 1. Now the translation strings are stored in the files in the resources/lang directory. In this directory, every language supported by the application should have a corresponding subdirectory: 2. The previous call method: return trans(online_store_theme_graphql::validation.custom.theme_editor_session.theme_editor_session_id_exists_rule); 3. Plan to translate files are stored in the resources/lang directory in JSON format 3. Deliberately distinguish /en/validation.php from en.json to confirm…

  • Post Views: 17 1. Paste the contents of the JSON file into a PHP file. The format is lost after pasting. as shown in Figure 1 2. After copying, in the php file, right-click – copy/paste special – paste as plain text. as shown in Figure 2 3. The pasted format is already in json format, as shown in Figure…

  • Post Views: 16 1. The performance of the web page is that when the request parameter is input:\, the response is 200, which in turn causes the response to 500 when the template is rendered. as shown in Figure 1 2. View the corresponding logs in the Alibaba Cloud Log Service SLS, and report an error when parsing the JSON…

  • Post Views: 21 1. Run successfully in Altair GraphQL Client. as shown in Figure 1 2. Edit the test file, /modules/themestore/tests/functional/graphql/MutationThemeAssetGraphQLapTest.php. 3. Run the test case and report an error: Expected Type ThemeAssetCreateInput to be an object. as shown in Figure 2 4. Re-edit the test file 5. Run the test again and the test passes. 6. Run the test…

  • Post Views: 16 1. Reference:https://www.shuijingwanwq.com/2022/03/15/6129/. Request Shopify in Altair GraphQL Clients GraphQL Admin API. Finally decided to try again with Postman. 2. Reference:https://learning.postman.com/docs/sending-requests/supported-api-frameworks/graphql/. Querying with graphql 3. Send a GraphQL query in the request body. Open a new request tab in Postman and enter your GraphQL endpoint URL in the address bar. Select POST from the request method drop-down list.…

  • Post Views: 25 1. On the left is a list of theme materials. Each time the user clicks a material, the operation buttons: delete the file, rename, and save, which will change with the change of the material. as shown in Figure 1 2. For example: ajax-loader.gif, which only allows operations: delete files, rename, not allow operations: save. as shown…

  • Post Views: 16 1. Reference URL:https://lighthouse-php.com/4/testing/phpunit.html#setup, test with phpunit . In Lighthouse, it is easy to add automated tests with phpunit. 2. Run the GraphQL Query API and respond 200. The main test field: The responses of TheMeAssets. as shown in Figure 1 3. Edit /modules/themestore/tests/functional/graphql/onlineStoreEthemeGraphQLapTest.php, the code is as follows 4. Execute the command: ./vendor/bin/phpunit .\modules\themestore\tests\functional\graphql\OnlineStoreEthemeGraphQLapTest.php . Error: Failed…

  • Post Views: 19 1. A JSON structured and escaped character. as shown in Figure 1 2. I want to format the value of the result field in JSON. Open URL:https://www.bejson.com/. Copy the content to the online tool, then click Remove Escape. as shown in Figure 2 Before escaping: After escaping: 3. After removing the escape, click Format Check to get…

👨‍💻 Personal Brand

Wang Shiqiang | PHP & Go Technical Consultant

15+ years of backend development experience specializing in system maintenance, architecture optimization, performance tuning, and Linux administration.

Technical blogger since 2013 with 1,000+ original articles.

Available for consulting, long-term maintenance, and remote collaboration.

👉 About Me & Contact

.env (14) 404 (13) add (17) Aliyun (19) Apache (13) Array (19) browser (14) Cache (13) CentOS (23) chrome (18) Client (11) command line (13) composer (42) composer.json (22) composer install (13) composer update (14) console (14) Container (25) curl (15) Database (11) database migration (16) delete (32) Docker (31) Dockerfile (15) ECS (12) environment variable (20) error (24) escape (12) Failed (13) file (16) filter (20) fopen (11) FORMAT (12) function (13) Git (27) GitHub (16) Gitlab (15) Go (34) Go 1.26 (12) GraphQL (24) GraphQL API (14) hosts (11) http (21) https (20) Installation (13) Interface (19) Jenkins (12) Jquery (13) json (24) Laravel (36) Laravel 6 (56) Laravel 9 (25) Lighthouse (17) Lighthouse 5 (14) Linux (15) Memory (11) Migrate (13) Module (17) MySQL (76) MySQL 5.7 (21) Nginx (45) Node.js (12) normalize.css (29) OKX (15) PHP (64) php.ini (24) PHP 7.1.12 (22) PHP 7.4 (26) phpmyadmin (15) PhpStorm (24) Polylang (26) postman (18) Query (17) queue (16) Rancher (24) Redis (38) Refactoring (12) require (12) response (13) RESTful (27) RESTful API (23) rules (12) setting (12) Shell (13) Shopify (19) Shopify CLI (12) SQL (24) String (15) TortoiseGit (15) Twenty Twenty-Five (11) Ubuntu (35) update (20) VPN (13) Windows 10 (46) WireGuard (22) WordPress (56) Wstunnel (11) Yii (40) Yii 2 (70) Yii 2.0 (51)

2026 年 6 月
1234567
891011121314
15161718192021
22232425262728
2930