Year: 2023
-
Post Views: 17 1. In Laravel 6, define the route as follows 2. Now you need to adjust /static/xxx to get the value from the environment variable, that is, use the global config function to access the configuration value 3. Print output/ / *. config(filesystems.disks.theme-asset-cdn.root) .{theme_id}/{asset_key}, its value is: /static/xxx/{theme_id}/{asset_key} . and the corresponding controller method can be executed. in…
-
Post Views: 21 1. Obtain an invitation to register a link from other places, and after re-registering an account, the identity authentication is unauthenticated. However, there is no response after the authentication is clicked, and there is no way to enter the authentication page. as shown in Figure 1 2. The reason is probably that my old account on this…
-
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: 16 1. Report an error in PHP 7.4: header() expects at least 1 parameter, 0 given. as shown in Figure 1 2. Check the specific code implementation 3. Print the $fields , the result is as follows 4. Add judgment, when $field is equal to name, print $FieldResolvers[$field], is_callable($fieldResolvers[$field]) 5. is_callable — Verify that the value can be…
-
Post Views: 17 1. When filtering in an Excel, filter: Jie Meina, only the line with the end of the date is 4.30, and the subsequent row cannot be filtered successfully. Figure 1, Figure 2 2. Discovery The date is 5.1, and each column has a filter button, which feels like a new table has been opened. as shown…
-
Post Views: 15 1. In Laravel TeleScope’s Job queries, some SQL statements are not recorded. Queries (22) is actually far more than 22. as shown in Figure 1 2. Check Laravel/Tescope in composer.json, its version is: v2.1.7 . as shown in Figure 2 Clear the table starting with Telescope_ and re-execute the Job. In Laravel Telescope’s queries, find all the…
-
Post Views: 15 1. In the MySQL table, the field type is JSON, and it is allowed to be null. as shown in Figure 1 2. Since only is_null() is judged in the program, if it is not null, the default is json format. When its value is String(4) “NULL”, the program throws a 500 exception. Displayed as null, indicating…
-
Post Views: 16 1. For the same GraphQL API request, it sometimes responds to 500 in the browser, and there is no response data, and sometimes the response is 200, and there is a response data. as shown in Figure 1 2. When the response is 500, there is no response data. Decide to set the error level to output…
-
Post Views: 21 1. URL:https://object.local/?oseid=2052A62hlvOV6hlqej5yS2MwoYpUxXTtMQQb, when a certain condition is met, you want to delete the query parameter: oseid and make the URL change to:https://object.local/. Don’t want to use 302 jump implementation. 2. The specific implementation is as follows 3. The printing results are as follows, in line with expectations. as shown in Figure 1