Year: 2022
-
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: 16 1. In the Git-based operation, branch A is behind B, and A will advance to B quickly. Click the button to start (fast forward). as shown in Figure 1 2. When changing the base again, it prompts: no need to change the base, A is equivalent to B. as shown in Figure 2 3. Check the git…
-
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: 20 1. Check the existing implementation code as follows: 2. Check the print results before and after the multidimensional array index. Use the value of the name column in the array as the new key. as shown in Figure 1 3. However, just using the function array_column is enough to achieve. When column_key is null, the entire array…
-
Post Views: 15 1. Lighthouse uses a lot of SDL and uses mode instructions. In order to improve your editing experience, you can use the artisan command to generate a definition file. Error: Illuminate\Contracts\Container\BindingResolutionException : target[Modules\ThemeStore\View\ViewStorageInterface]Is not instantiable while building[Modules\ThemeStore\Resolver\OnlineStoreThemeResolver]. as shown in Figure 1 2. Execute the command: php artisan module:list to display a list of all modules. Confirm…
-
Post Views: 15 1. When executing: composer install, it prompts: key condevelopment/blade-filters is a duplicate in ./composer.json at line 91. as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/2022/04/19/6307/. At that time, there was no need to edit composer.json, and add “conedevelopment/blade-filters”: “^0.8”. Delete this line to avoid duplication. 3. Refer to Warning, execute Composer Update ConedEvelopment/blade-filters. as shown in Figure 2…
-
Post Views: 16 1. When basename: “collections”, the decoding is successful. as shown in Figure 1 2. Decoding fails when basename: “CollectionTitem” is used. as shown in Figure 2 3. View the code implementation of the decoding 4. First analyze the successful process and print JSON_LAST_ERROR() 5. Re-analyze the failed process, print JSON_LAST_ERROR(), where the value of one failure is…
-
Post Views: 16 1. Error: Argument 1 Passed to App\\Exceptions\\Handler::report() must be an instance of exception, instance of typeError given, called in E:\WWRoot\\Object\Vendor\\nuwave\Lighthouse\src\execution\\reportingErrorHandler.php on line 40. as shown in Figure 1 2. Reference URL:https://www.shuijingwanwq.com/en/2022/01/26/9945/. Caused by version compatibility issues. Edit /vendor/nuwave/lighthouse/src/execution/reportingErrorHandler.php. Print $error. Message: Argument 1 Passed to Nuwave\Lighthouse\Schema\TypeRegistry::get() must be of the type string, array given, Called in E:\WwWroot\Object\Vendor\NuWave\Lighthouse\src\Schema\Typeregistry.php…