<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ``` //主要步驟 //1.遷移隊列需要的數據表 //2.編寫任務類 //3.推送任務到隊列 //4.推送隊列監聽器 //5.處理失敗的任務 //配置 config/queue.php //支持 "sync", "database", "beanstalkd", "sqs", "redis", "null"等驅動 //這里使用database驅動 //打開.env文件,找到 QUEUE_DRIVER=sync 改為 QUEUE_DRIVER=database //1.遷移隊列需要的數據表 //創建隊列表 //php artisan queue:table //遷移文件 //php artisan migrate //2.創建任務類 //php artisan make:job SendEmail //會在app/Jobs/創建 //3.推送任務到隊列 dispatch(new SendEmail('xinbu@126.com11')); //4.監聽隊列并執行 //php artisan queue:listen //5.處理失敗的任務 // 1.創建失敗隊列的表 // php artisan queue:failed-table //2.遷移文件 // php artisan migrate //查詢失敗的隊列任務 //php artisan queue:failed //把失敗的隊列任務重新放回隊列中 //1為ID,all把所有失敗的隊列任務施加隊列 //php artisan queue:retry 1 //php artisan queue:retry all //刪除失敗的隊列任務 //php artisan queue:forget 4 //php artisan queue:flush ``` ***** SendEmail.php部分代碼 ***** ``` protected $email; /** * Create a new job instance. * * @return void */ public function __construct($email) { // $this->email=$email; } /** * Execute the job. * * @return void */ public function handle() { // Mail::raw('隊列測試',function($message){ $message->from('xxxxxxx@163.com','fggrtrtere'); $message->subject('郵件主題 測試'); $message->to($this->email); }); } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看