php artisan 日程表:工作 - 命令未定义
我正在尝试运行 php artisan Schedule:work 命令,收到此类错误消息。我该如何解决这个问题? 错误图片
I'm trying to run php artisan schedule:work command, getting this kind of error message. How can I solve this problem?
Error image
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了避免使用已弃用的函数或查找新版本中的函数,您应该真正听取第一个评论者的意见并升级到更高版本,因为此命令仅在 Laravel 8 中引入。
我相信您需要遵循两个指南。首先,将 从 Laravel 7.x 升级到 8,然后 从 Laravel 8.x 到 9。这也意味着您将升级您的 PHP 版本,因此它的优点无处不在。
总升级时间应为45 分钟,另外还有15 分钟用于修复不可避免的错误。 30 分钟升级您的库。现在请腾出1.5 小时,而不是浪费时间尝试寻找您可能一直在使用的功能。
To avoid using deprecated functions or finding functions that were made in new releases, you should really listen to what the first commenter said and upgrade to a later version as this command was only introduced in Laravel 8.
I believe you need to follow two guides. First, upgrade from Laravel 7.x to 8, then from Laravel 8.x to 9. This will also mean that you'll upgrade your PHP version, so it's pluses all around.
Total upgrade time should be 45 minutes with an additional 15 minutes for fixing the inevitable bugs. And 30 minutes to upgrade your libraries. Spare 1.5 hours now rather than waste time trying to find get around for features you could've been using.