Tag: Laravel 6

  • 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: 19 1. Now trying to download the remote zip file to the server. Remote file URL:https://www.shuijingwanwq.com/wp-content/uploads/2021/07/两位老人被两只狗给撞了.wmv 2. Reference:https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html#sink. Declare the body part where the response will be saved. as shown in Figure 1 3. Reference:https://www.shuijingwanwq.com/2020/11/26/4627/. The resources returned by fopen() will be written to the PHP stream in response 4. Throw an exception: fopen(e:\wwwroot\object\storage/theme_down loads/2022/05/19/1652927525.7561.1655422634.zip): Failed to open…

  • Post Views: 22 1. Check the existing code, which is implemented based on the function app. The app function returns the service container instance. Unable to jump to the corresponding method by clicking getByName() . as shown in Figure 1 2. Refer to the automatic injection of the service container. You can simply inject the dependencies that require container resolution,…

  • Post Views: 19 1. In Laravel 6, Lighthouse, debugMessage”: “expected a value of type \”string\” but received:[\”en-US\”,\”zh-CN\”,\”sp-ES\”,\”fr-FR\”,\”de-DE\”,\”pt-PT\”,\”it-IT\”]. as shown in Figure 1 2. Print dd($resolveddata[‘current’][‘settings’][31]); , the result is as follows. The value of the 31st element is in the array format. as shown in Figure 2 3. Edit the parser method, var_dump($value);, print out a list of values 4.…

  • Post Views: 17 1. When the language area is en , when the validated parameter does not exist, the response: The selected theme ID is invalid. as shown in Figure 1 2. When the language area is zh_cn, when the validated parameter does not exist, the response: the selected Theme ID is invalid. Expected: The selected theme ID is invalid.…

  • Post Views: 17 1. In the program implementation, first request the API to generate a cache ID. Then request the API, delete the cache ID. as shown in Figure 1 2. If you want to pass in the test, the premise is that there must be a clear cache ID to delete the parameters of the request. 3. Reference URL:https://learnku.com/laravel/t/22690.…

  • Post Views: 18 1. At this stage, you need to implement an interface to delete the cache ID in the GraphQL API. Refer to the Shopify example. When the cache ID does not exist, the response fails. as shown in Figure 1 2. Due to the rule to verify whether this cache ID exists, it will be used in a…

  • Post Views: 17 1. When using Redis with Laravel, there are two solutions, one is to install the phpredis php extension, and the other is to install the predis/predis package through composer. However, Predis has been abandoned by the original author of the package and may be removed from Laravel in future releases. It was finally decided to use the…

  • Post Views: 18 1. Reference URL:https://learnku.com/docs/laravel/6.x/blade/5147#20f1dd. Blade Template – Components & Slots 2. First write a reusable “alert” component, we want to reuse it in the application, create a new file: /resources/views/alert.blade.php 3. Configure the route in /routes/web.php 4. Create a new template file: /resources/views/component.blade.php 5. Open the URL: view-source:http://laravel-theme-demo.local/component. View the source code. in line with expectations. as shown…

  • Post Views: 22 1. The structure when the request responds successfully. as shown in Figure 1 2. However, at this stage, there is no security verification for the request parameters. Reference:https://lighthouse-php.com/master/security/validation.html#single-arguments. Lighthouse allows you to use Laravel’s validation in queries and changes. 3. The change of this GraphQL API has only one request parameter, that is, themeID, and only need…

👨‍💻 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) Ad Inserter (11) 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) 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 (57) Wstunnel (11) Yii (40) Yii 2 (70) Yii 2.0 (51)

2026 年 6 月
1234567
891011121314
15161718192021
22232425262728
2930