Category: Laravel 6
-
Post Views: 18 1. In Laravel 6 , error: E:\\wwwroot\\object\\vendor\\ramsey\\uuid\sr c\\converter\\number\\degradedNumberConverter.php”, “class”: “ramsey\Uuid\\Exception\\UnsatisfiedDependencyException as shown in Figure 1 2. In the build production environment, execute: composer install –prefer-dist –no-ansi –no-interaction –no-progress –no-scripts –no-dev. 3. In Composer.json’s require configuration, add “moontoast/math”. Execute: composer require moontoast/math. Execute again: composer install –prefer-dist –no-ansi –no-interaction –no-progress –no-scripts –no-dev. No more errors.
-
Post Views: 18 1. The parameters requested by the front-end are empty strings. as shown in Figure 1 2. After the backend is saved, the value of the title is null . 3. Print all request parameters in the backend, var_dump($request->all()); Confirm that the value of the title has been converted to null. as shown in Figure 2 4. Reference:https://learnku.com/docs/laravel/6.x/validation/5144#6633ca.…
-
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: 22 1. Execute sudowWWphp artisan es:migrate, error: CUSTOM Analyzer[ik_smart_synonym]Failed to find tokenizer under name[ik_smart]. as shown in Figure 1 2. Reference: Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version of the IK word segmentation plugin is not installed. The operation was successful. as shown in Figure 2
-
Post Views: 19 1. In Laravel 6, after the model applies soft deletion, the record is inserted again, and the unique key conflicts. as shown in Figure 1 2. The reason is that after applying soft deletion, when you use the delete method on the model instance, the current date and time will be written to the deleted_at field. At…
-
Post Views: 15 1. Only errors are reported in Linux: Failed to load type: OnlineStoreEthemePreset. Make sure the type is present in your schema definition. It is available in the local Windows 10 environment. as shown in Figure 1 2. Execute the command: php artisan cache: clear, clear the cache. The interface request was successful. The reason is that GraphQL…
-
Post Views: 14 1. There is a php Blade code block, which is placed in mysql, and its code is stored in the field schema, as shown in Figure 1 2. Some variables, already declared in the php script, the code block is shown below 3. The code of the compiled template file is as follows. 4. Decided to skip…
-
Post Views: 19 1. The command in the task queue artisan::call, the code is as follows 2. Check the generated log file to confirm that the command has been executed. Confirm that the command was not executed because the log file of -1 was not generated. as shown in Figure 1 3. Decide to manually execute the command line in…