隊(duì)列沒有啟動監(jiān)聽,為什么還會執(zhí)行??
<?php
namespace App\Http\Controllers\Test;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Mail;
use App\Jobs\SendEmail;
class TestController extends Controller
{
? ? //隊(duì)列
? ? public function queue() {
? ? ? ? dispatch(new SendEmail('12312313@qq.com'));
? ? }
}