【发布时间】:2015-03-07 20:21:35
【问题描述】:
我需要在 Laravel 网站上设置一些 cron 工作。似乎首先我必须在 shell 中运行以下命令才能开始:
php artisan command:make CustomCommand
但是,由于我没有 shell 访问权限,我唯一的其他选择是使用 Artisan::call 并通过 HTTP 进行访问。语法是这样的:
\Artisan::call( 'command:make',
array(
'arg-name' => 'CustomCommand',
'--option' => ''
)
);
我面临的问题是,我似乎找不到 command:make 命令的 arg-name 值。
如果有人提到make 命令的参数名称或建议不需要外壳访问的替代解决方案,我真的很感激。
【问题讨论】:
标签: laravel laravel-4 laravel-artisan