Category: Artisan Command
-
Post Views: 18 1. At this stage, you need to implement an interface to delete the cache ID in the GraphQL API. Refer to the Shopify example. When the cache ID does not exist, the response fails. as shown in Figure 1 2. Due to the rule to verify whether this cache ID exists, it will be used in a…
-
Post Views: 14 1. Error in Laravel 6: Target[Interface]Is not instantiable while building[Resolver]. as shown in Figure 1 2. Check /modules/themestore/providers/themestoreServiceProvider.php, prompting undefined classThemeschemaLoaderInterface. as shown in Figure 2 3. However, you can confirm the classThemeschemaLoaderInterfaceis there. In the end, I found that the path of use is wrong. Delete the theme\ from the path. IDE no longer prompts. as…
-
Post Views: 17 1. In Laravel Telescope, the page has been in Scanning…. View the network, tableObject_Store.teleScope_Entriesdoesn’tt exist. as shown in Figure 1 2. Run the migrate command: 3. Refresh the page, the response is 200. as shown in Figure 2
-
Post Views: 14 1. When executing php artisan package:discover –ansi, the error: please install the elasticsearch php client: Elasticsearch/Elasticsearch. as shown in Figure 1 2. The reason is that the package tamayo/laravel-scout-elastic needs to install Elasticsearch/elasticsearch. However, before executing the command composer require nuwave/lighthouse, the command is also executed: php artisan package:discover –ansi, no error is reported. as shown in…
-
Post Views: 13 1. In Lighthouse 4.10.1, add a new Query Type: There is no effect after obtaining the theme material list. 2. Check the document, there is no existence to get the list of theme materials. as shown in Figure 1 3. Refer to schema caching:https://lighthouse-php.com/4/performance/schema-caching.html, it is recommended to enable cache in production mode. Now for the local…
-
Post Views: 17 1. In the Git library, it is found that the database migration file has some changes, such as: the field MINE_TYPE is changed to MIME_TYPE. as shown in Figure 1 2. 2 database migration files, just in the last migration. as shown in Figure 2 To roll back the migration, if you want to roll back the…
-
Post Views: 56 1. Search in GitHub: Laravel Module, select the first result: NWidArt / Laravel-Modules. It supports module management in Laravel. 2. Reference URL: https://nicolaswidart.com/blog/writing-modular-applications-with-laravel-modules . Why use this package, write modular applications using laravel-modules. When it comes to writing more complex and larger applications, it is found that Laravel’s default structure is cumbersome and not ideal. 3. To…
-
Post Views: 21 1. In Laravel 6, execute the command: php artisan telescope:publish, report an error: Unable to local publishable resources. Publishing complete. as shown in Figure 1 2. Check composer.json, laravel/teleScope exists in require-dev. 3. Check the directory /config, the file telescope.php already exists, the file: /app/providers/teleScopeServiceProvider.php already exists. But the directory /public/vendor/teleScope does not exist. 4. Access:http://object.local/telescope, the…