本文介绍了使用 Laravel 4 的 Cron 作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试了解如何在 Laravel 4 中设置 Cron 作业,以及我需要在 artisan 中运行的命令.

I'm trying to find out how to set up a cron job in Laravel 4, and the command I would need to run in artisan for it.

在 Laravel 3 中,有 Tasks 但这些似乎不再存在,也没有关于如何去做的文档......

In Laravel 3, there were Tasks but these don't seem to be there anymore and there is no documentation as to how to do it...

推荐答案

任务已被替换为 命令,在 Laravel 4 中是一样的东西,但集成了 Symfony 的控制台组件,并且比以前更强大.

Tasks have been replaced with commands, which are the same thing in Laravel 4, but integrated with Symfony's console component, and even more powerful than before.

这篇关于使用 Laravel 4 的 Cron 作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 04:36