Category: Laravel
-
Post Views: 15 1. Navigate to the directory where you want to create the application (e:\wwwroot\shopify-app). Your application will be created in a new subdirectory. as shown in Figure 1 2. Run one of the following commands to create a new application, and then select the language of the application template you want to start using: Node, PHP, or Ruby.…
-
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…