带内腔望远镜

时间:2018-10-24 08:25:45

标签: php laravel lumen

我按照https://github.com/laravel/telescope尝试了命令:

composer require laravel/telescope --dev

php artisan telescope:install

该命令导致以下错误:

There are no commands defined in the "telescope" namespace.

尝试通过作曲者更新来更新依赖关系,但问题仍然存在。

composer update

Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 29 updates, 0 removals
  - Updating illuminate/contracts (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/support (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/filesystem (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/session (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/pipeline (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/http (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/container (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/routing (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/events (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/view (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/translation (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/validation (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/database (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/console (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/queue (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating illuminate/pagination (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/log (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/hashing (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/config (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/cache (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/bus (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/broadcasting (v5.7.9 => v5.7.10): Loading from cache
  - Updating illuminate/auth (v5.7.9 => v5.7.10): Downloading (100%)
  - Updating laravel/lumen-framework (v5.7.1 => v5.7.2): Downloading (100%)
  - Updating phpunit/php-code-coverage (6.0.8 => 6.1.3): Downloading (100%)
  - Updating phpunit/phpunit (7.4.0 => 7.4.3): Downloading (100%)
  - Updating aws/aws-sdk-php (3.69.4 => 3.69.13): Downloading (100%)
  - Updating league/flysystem (1.0.47 => 1.0.48): Downloading (100%)
Writing lock file
Generating optimized autoload files



php artisan telescope:install


There are no commands defined in the "telescope" namespace.

这是否意味着我们需要等到laravel / lumen-framework v5.7.7 +才能使用带内腔的望远镜?

2 个答案:

答案 0 :(得分:1)

根据Mohamed Said(laravel开发人员)的评论:

望远镜还不适合流明。

请参阅github问题:https://github.com/laravel/telescope/issues/112

答案 1 :(得分:0)

首先:不需要传送端口名称空间。您始终可以在bootstrap / app.php中注册服务提供商。 但这不是问题。我注册了提供商并收到了此错误消息

  

调用未定义的方法   Laravel \ Lumen \ Routing \ Router :: middlewareGroup()。

流明的路由器类与Laravel的路由器类不兼容。唯一的解决方案是获取代码,创建一个fork并将Laravel函数“翻译”为Lumen函数。