Year: 2022

  • Post Views: 18 1. Print the SQL statement executed by the program, and the result is as follows. as shown in Figure 1 2. The number of SQL statements executed by the print program is 79. Array elements start with 0. as shown in Figure 2 3. Print the SQL and copy it to MySQL 5.7 to execute. Its number…

  • Post Views: 23 1. To set the configuration value at runtime, pass an array to the config function, which is reset in the middleware 2. The Singleton method binds a class or interface to a container that is only parsed once. Once the singleton binding is resolved, the same object instance will be returned to the container in subsequent calls.…

  • Post Views: 17 1. The date and time format obtained from the upstream interface is: TIMESTAMPTZ. Example: “updated_at”: “2022-05-30t05:53:53.000000z”. 2. Store the upstream value to the current database, and its date and time format is: Timestamp. 3. The code conversion is realized as follows 4. The converted format is as follows: 2022-05-30 13:53:53.

  • Post Views: 18 1. The existing code is implemented as follows 2. The interface response structure is as follows, as shown in Figure 1 3. It is expected to put some fields in the field Theme_Installation into the first level, that is, level with the ID, and finally delete the Theme_Installation. 4. The final implementation code is as follows 5.…

  • Post Views: 24 1. The correlation of the model Theme is as follows 2. The correlation of the model ThemeInstallation is as follows 3. Error when obtaining the associated attribute: sqlstate[42S02]: base table or view not found: 1146 tableObject_wp.wp_theme_installationdoesn’tt exist . as shown in Figure 1   4. The table Theme_Installation does not exist in object_wp.wp_theme_installation, but actually exists in…

  • Post Views: 17 1. Now you need to apply some commits on branch A to branch B. 2. Switch to branch: B, execute the command: git cherry-pick fbf19e86. Error: Conflict (Content): merge Conflict in platform/app/services/themeservice.php . Error: could not apply fbf19e86f4… . as shown in Figure 1 3. The reason was found. The reason is that there are still some…

  • Post Views: 16 1. In a template directory, because there are some files that need to be ignored, it is also written into the table, so it needs to be filtered out. Reference: In Laravle 6, togos/phpgitignore, implementation for parsing and applying .gitignore class rules 2. The current code implementation 3. The result is for example: the file starting with…

  • Post Views: 18 1. There is a folder at this stage, which contains a configuration file similar to .gitignore: .themeignore, the content is as follows 2. You need to ignore some files based on this file configuration, and only include the required files. For example: filter out node_modules/* . as shown in Figure 1 3. Install togos/gitignore based on composer…

  • Post Views: 18 1. In the startup script of the docker container, if you want to force the migration command to run without prompt, use the –force parameter 2. At this stage, there is a module developed based on Laravel Modules, and there are migration files, such as: /modules/themestoredb/database/migrations . as shown in Figure 1 3. In the local development…

👨‍💻 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) Migration (11) Module (17) MySQL (76) MySQL 5.7 (21) Nginx (45) Node.js (12) normalize.css (29) OKX (15) PHP (63) php.ini (24) PHP 7.1.12 (22) PHP 7.4 (26) phpmyadmin (15) PhpStorm (24) Polylang (24) 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) Ubuntu (35) update (20) VPN (13) Windows 10 (46) WireGuard (22) WordPress (48) Wstunnel (11) Yii (40) Yii 2 (70) Yii 2.0 (51)

2026 年 6 月
1234567
891011121314
15161718192021
22232425262728
2930