我试图使用Laravel在预定的计时器上运行Helper函数(App\Helpers) (为了测试目的,我每分钟运行一次)。我用的是Laravel 5.3。protected function schedule(Schedule $schedule) $schedule->call(function()
{// I know this works perfectly fine outside of the scheduled task because I
php
use Illuminate\Http\Request;use Helper;class MyController extends Controller public function entities_get() {
Helper::my_function(); // <---- Call my Helper class method to re