I've just started learning Laravel in the past couple days and I'm intrigued by its capabilities. On my current website, I am using several different PHP-based cron jobs and I'm wondering if it is possible to utilize Laravel in them.
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

已采纳
我可以在PHP cron作业中使用Laravel吗?
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
duanbeng1923 2013-04-25 10:36关注Yes, you should use Laravel's tasks features.
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
编辑预览轻敲空格完成输入- 显示为
- 卡片
- 标题
- 链接
评论按下Enter换行,Ctrl+Enter发表内容
编辑
预览

轻敲空格完成输入
- 显示为
- 卡片
- 标题
- 链接
报告相同问题?
提交
- 2017-04-11 06:51回答 1 已采纳 No, you do not need Composer to run a cron job with Laravel. If you're vendor folder is present wi
- 2018-02-18 11:55回答 2 已采纳 Using the task scheduler is the correct way to go about this. If you have a large number of remind
- 2015-06-04 17:14回答 2 已采纳 A very convenient way is to use laravels console component. You can create a new command by issuin
- 2021-05-23 22:56在 Laravel 框架中,Cron Job 是一种定期执行任务的方法,它允许开发者调度计划的任务,例如发送邮件、清理数据库、同步数据等。Laravel 7 提供了一个方便的命令行工具 Artisan 来创建和管理 Cron Jobs,使得定时...
- 2018-11-18 23:52回答 1 已采纳 Just so you can close the question. As I said in the comments / chat You should be able to set
- 2016-12-31 18:53回答 1 已采纳 Reference I noticed cron function has 6 stars. Try ->cron('0 0 1 1 * *'). Also yearly has the
- 2014-09-05 15:49回答 1 已采纳 You can schedule artisan commands and make your own commands like so: php artisan command:make cr
- 2021-02-03 04:47如果要模拟在测试环境中每分钟运行的调度程序,则使用cron可能很麻烦。 该软件包提供了一个命令,可以每分钟运行一次调度程序,而无需依赖cron。 相反,它使用循环。 这是您可以启动无备份时间表的方法: php ...
- 2016-10-19 07:59回答 1 已采纳 After some more thinking, I managed to solve this. Each module now has a "cron" folder. The files
- 2017-08-30 05:22回答 1 已采纳 I've managed to solve the problem by changing my scheduler task definition from: $schedule->co
- 2015-10-01 02:54回答 1 已采纳 OK if I understand correctly what you want to do is an async message to the user one way to do it
- 2021-03-25 02:41记忆的盒子的博客 在 Docker 中部署 Laravel 应用,难免会用到 Laravel 本身的任务调度系统(Schedule),而 Schedule 需要用到 cron,在 Docker 中使用 cron,有以下三种方案:使用独立的 cron 容器。❎ 如果有多个不同的容器应用需要...
- 2021-05-27 00:51仔细检查仔细检查可帮助您的Laravel 5.1+项目确保其...添加Cron作业以运行您的计划吗? 安装一个晦涩难懂的程序,您的报告每月使用一次? 是否启用API所需PHP扩展? 这是为审查而构建的方案–使用您设置的可用性监视器
- 2021-02-12 14:15球童PHP 适用于Dockerfile 适用于Laravel wokrdir是/ var / www / html + public作为根目录
- 2021-04-18 17:46周春花的博客 The PHP cron expression parser can parse a CRON expression, determine if it is due to run, calculate the next run date of the expression, and calculate the previous run date of the expression....
- 没有解决我的问题, 去提问
联系我们(工作时间:8:30-22:00)
400-660-0108kefu@csdn.net在线客服
- 京ICP备19004658号
- 经营性网站备案信息
公安备案号11010502030143
- 营业执照
- 北京互联网违法和不良信息举报中心
- 家长监护
- 中国互联网举报中心
- 网络110报警服务
- Chrome商店下载
- 账号管理规范
- 版权与免责声明
- 版权申诉
- 出版物许可证
- ©1999-2025北京创新乐知网络技术有限公司