In Laravel 6, execute the command: php artisan telescope:publish, error: Unable to local publishable resources. Publishing complete
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
PS E:\wwwroot\object> php artisan telescope:publish
Unable to locate publishable resources.
Publishing complete.
Unable to locate publishable resources.
Publishing complete.
PS E:\wwwroot\object>
2. Check composer.json, laravel/teleScope exists in require-dev.
"require-dev": {
"allure-framework/allure-phpunit": "^1.3",
"barryvdh/laravel-debugbar": "^3.6",
"beyondcode/laravel-dump-server": "^1.0",
"beyondcode/laravel-er-diagram-generator": "^1.4",
"brianium/paratest": "^2.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"laravel/telescope": "^2.1",
"mockery/mockery": "^1.0",
"mpociot/laravel-apidoc-generator": "^4.1",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^7.5",
"squizlabs/php_codesniffer": "^3.5"
},
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 response 500. as shown in Figure 2
5. Execute commands one after another: php artisan clear-compiled, composer dumputoload. Note: Not sure if these 2 commands work. Edit the .env file, telescope_enabled=true.
6. Access:http://object.local/telescope, in response to the telescope assets are not published. Please run: php artisan telescope:publish. as shown in Figure 3
7. Execute the command again: php artisan telescope:publish, no more errors. as shown in Figure 4
PS E:\wwwroot\object> php artisan telescope:publish
Publishing complete.
Copied Directory [\vendor\laravel\telescope\public] To [\public\vendor\telescope]
Publishing complete.
PS E:\wwwroot\object>
8. Directory: /public/vendor/teleScope already exists. as shown in Figure 5
9. Access:http://object.local/telescope, the response 200. as shown in Figure 6





