Tag: normalize.css
-
Post Views: 18 1. Error when the program is running: syntax error, unexpected,, expecting]. as shown in Figure 1 2. The code to catch the exception is implemented as follows, and finally find that the exception is not caught 3. Adjust the code implementation, and change the Throwable $E to \Throwable $E. Capture was successful. The log is generated as…
-
Post Views: 15 1. The route of a requesting resource file is as follows: /static/xxx/9915995c-2952-4 90c-8e51-037a0950233c/assets/js/react.f886be.js 2. Since / is included in asset_key. Laravel routing components allow all characters except / . You must explicitly allow / to be part of a placeholder using the WHERE conditional regular expression. Otherwise, the route will fall back. The routes/web.php file is used…
-
Post Views: 19 1. In PHP 7.4, when using file_put_contents, an error is reported: Failed to open stream: no such file or directory. as shown in Figure 1 2. The reason is the file name: theme-cdn-config-2023-02-23-10:23:19.txt format is incorrect, it contains :, replace : with -, run again, no errors are reported.
-
Post Views: 18 1. Edit .gitignore, the file is level with the PuClicic level, to add some ignore directories (the directory name is unknown). Some directories are generated under the directory: public, and these directories should be ignored. as shown in Figure 1 2. View the current content, all content starting with /public/ 3. Check the submitted files that have…
-
Post Views: 19 1. In Laravel 6, when the URL does not exist, when the expected response is 404, the final response is 500. as shown in Figure 1 2. Open the URL:https://object.local/pages/ce-shi, the response 200. as shown in Figure 2 3. After deleting the data of this custom page in the database, the response is 500. as shown in…
-
Post Views: 15 1. The existing PHP code is implemented as follows 2. Open:https://regex101.com/, the matching is successful, and the result is as follows. as shown in Figure 1 3. Now expect that internal://all_collections/ can also match. Tip: Your regex doesn’t match the theme string. as shown in Figure 2 4. Characters with special meanings in regular expressions are called…
-
Post Views: 20 1. Error: count(): parameter must be an array or an object that implements countable (view: ). as shown in Figure 1 2. Check the code implementation 3. Print $user->address_book, its value is null 4. Adjust the code implementation, when $user->address_book is null, the expression $user->address_book ??[]equivalent to[], otherwise it is $user->address_book. 5. In PHP 7.2.0, when the…
-
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: 18 1. Execute the generated sql, which can be found in the local Windows 10. In the liunx container, no records are found. Print records under Windows 10. as shown in Figure 1 2. Print the record under the liunx container. The result is null. as shown in Figure 2 3. Decide to print the generated sql, you…
-
Post Views: 17 1. Reference:https://www.shuijingwanwq.com/2022/06/10/6593/, based on Togos/phpGitIgnore for parsing and applying .gitignore class rules implementation 2. Now expect that the /css, /images, /js, /locales, webpack.mix.js and other files in the /assets/apps/ directory should be ignored. The current configuration is as follows. as shown in Figure 1 3. This stage has not been ignored. For example: /apps/object/backtop/js/backtop.jsx, which should be…