Category: Laravel
-
Post Views: 21 1. Run successfully in Altair GraphQL Client. as shown in Figure 1 2. Edit the test file, /modules/themestore/tests/functional/graphql/MutationThemeAssetGraphQLapTest.php. 3. Run the test case and report an error: Expected Type ThemeAssetCreateInput to be an object. as shown in Figure 2 4. Re-edit the test file 5. Run the test again and the test passes. 6. Run the test…
-
Post Views: 19 1. In PHPStorm and Laravel 6, the event log: Switch Laravel Idea Module System to Laravel-Modules? Switch or DonT show this again. as shown in Figure 1 2. Reference:https://laravel-idea.com/docs/modules. Laravel Idea uses module system concepts to understand the structure of the application. It helps with the correct view, configuration, routing and more convenient code generation. The module…
-
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: 19 1. The structure when the request responds successfully. as shown in Figure 1 2. However, at this stage, there is no security verification for the request parameters. Reference:https://lighthouse-php.com/master/security/validation.html#single-arguments. Lighthouse allows you to use Laravel’s validation in queries and changes. as shown in Figure 2 3. Although the change of this GraphQL API has only 3 parameters in…
-
Post Views: 21 1. Add Template to create a template. as shown in Figure 1 2. Click the save button to view the network request. Request URL:https://xxx.myshopify.com/admin/themes/111/assets. Request method: POST. This is the REST implementation. as shown in Figure 2 Requested form data: Response data: 3. The API for creating template files is not implemented in GraphQL. Decided to refer…
-
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: 15 1. When writing the automated test cases of Lighthouse 5, phpstorm cannot be completed automatically. When you click $response->assetJSON, you cannot find the statement you want to go to. fashionAssertJSONNot found in \illuminate\testing\testResponse. as shown in Figure 1 2. Print the $response object, its actual path is:\illuminate\foundation\testing\testResponse. as shown in Figure 2 3. In another project, phpstorm…
-
Post Views: 18 1. In Laravel 6, an error is reported: Illuminate\View\ViewException (E_ERROR) The mix manifest does not exist. as shown in Figure 1 2. Install Laravel Mix and execute the command: yarn install to install the npm dependency package of the current project 3. Run the MIX task and execute the command: npm run dev 4. Refresh the page,…
-
Post Views: 17 1. In Laravel 6, access:https://object.local, 302 jump tohttps://xxx.xxx.xxx.top. as shown in Figure 1 2. Look in the source code: xxx.xxx.xxx.top, not found. And the database has replaced all xxx.xxx.xxx.top with Object.local. 3. There is a key name in Redis: laravel_cache:main_domain_cache, its value: s:26:”xxx.xxx.xxx.top”;. as shown in Figure 2 4. After clearing Redis, visit again:https://object.local, the response 500.…