【问题标题】:Laravel get error when composer update doctrine/inflector does not exist当作曲家更新学说/变形器不存在时,Laravel 出错
【发布时间】:2015-01-26 16:41:06
【问题描述】:

我想将此插件添加到我的项目中 https://github.com/davibennun/laravel-push-notification

当我更新了我的 comoser.json、app.php,然后运行 ​​composer update。 收到此错误消息。

[RuntimeException]                                                           
  /ProjectPath/vendor/doctrine/inflector does not e  
  xist and could not be created. 

知道如何调试吗?

【问题讨论】:

    标签: laravel plugins


    【解决方案1】:

    这是因为您同时更新了composer.jsonapp.php。您应该首先将其添加到composer.json

    "davibennun/laravel-push-notification": "dev-master"
    

    然后运行这个命令:

    composer update
    

    只有在完成之后,将这些行添加到app/config/app.php

    Davibennun\LaravelPushNotification\LaravelPushNotificationServiceProvider
    ...
    'PushNotification' => 'Davibennun\LaravelPushNotification\Facades\PushNotification'
    

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2016-07-22
      • 2015-09-13
      • 1970-01-01
      • 2022-06-13
      • 2013-12-25
      • 2014-09-07
      • 2016-09-06
      • 2018-10-13
      • 2015-11-26
      相关资源
      最近更新 更多