Category: Artisan Command
-
Post Views: 16 1. The current scenario is as follows. In one table, there is a field of payment method. Now if it is necessary, the payment method will be summarized into another table regularly. In order to prevent the records before the query is repeated every time the timing is executed, it is necessary to record a last execution…
-
Post Views: 17 1. In Laravel 6, in the terminal, you can confirm that the queue has been executed. as shown in Figure 1 2. However, in Laravel Telescope, the status of the queuing job still shows that it is not finished. as shown in Figure 2 3. It is suspected that after updating Telescope, there is no reconfiguration and…
-
Post Views: 20 1. When the file module.json is deleted under modules/blog, a new migration file is generated: nwidart\modules\exceptions\moduleNotFoundException : module[Blog]does not exist!. as shown in Figure 1 2. Use the make:migration artisan command to create a migration, and use the –path option to customize the personal storage path that generates the migration file. as shown in Figure 2 3.…
-
Post Views: 62 1. Generate a new module: blog. 2. By default, the module class will not load automatically. You can load your modules automatically using PSR-4. Edit composer.json. as shown in Figure 1 3. Tip: Don’t forget to run composer dump-autoload. as shown in Figure 2 4. Generate a given console command for the specified module. 5. Edit CreatePostCommand.php,…
-
Post Views: 20 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 for execCommandHandler-InstallTheme-1- was not generated. as shown in Figure 1 3. Decide to manually execute the command line in…
-
Post Views: 20 1. Install a theme, which is implemented based on the queue. The code is as follows 2. Based on the preliminary analysis conclusion, when the material to the synchronization theme is executed to the CDN, it feels like the operation of the program is suddenly interrupted. the present situation. as shown in Figure 1 3. It feels…
-
Post Views: 17 1. When executing php artisan config:clear, an error is reported: ErrorException : include(e:\wwwroot\object\vendor\composer/../../modules/them eStoreGraphQL/Providers/GraphQLResolverServiceProvider.php): Failed to open stream: no such file or directory. as shown in Figure 1 2. Confirm the file modules/themestoreGraphQL/providers/GraphQLResolverServiceProvider.php It no longer exists and is renamed: modules/OnlineStoreEthemeGraphQL/Providers/GraphQLResolverServiceProvider.php 3. Execute the composer install command to regenerate vendor\composer\classloader.php. Error: in providerRepository.php line 208: classModules\ThemeStoreGraphQL\Providers\GraphQLResolverServiceProviderNot found…
-
Post Views: 16 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…
-
Post Views: 18 1. Since in Windows 10, the setting of the maximum number of seconds (timeout time) that the task can perform does not take effect. Therefore, it is decided to test this feature in the online Linux server. 2. Add: sleep(1200); to the handle() method of the job; because $timeout = 600; , it is expected that it…