... from 方法可能會(huì)很麻煩。因此,您可以在您的 config/mail.php 文件中指定一個(gè)全局的「發(fā)件人」地址。當(dāng)某個(gè) mailable 類(lèi)沒(méi)有指定「發(fā)件人」時(shí),它將使用該全局「發(fā)件人」:'from' => ['address' => 'example@example.com'...
http://m.o2fo.com/laravel_8/laravel_8-4vab3hpz.html...tifications:table 命令來(lái)生成一個(gè)包含相應(yīng)的數(shù)據(jù)表的遷移:php artisan notifications:table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-zi7w3hsc.html...該方法應(yīng)該接收兩個(gè)參數(shù): $notifiable 和 $notification:<?php namespace App\Channels; use Illuminate\Notifications\Notification; class VoiceChannel { /** * 發(fā)送指定的通知。 * * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @retur...
http://m.o2fo.com/laravel_8/laravel_8-jpi53ht4.html...nction boot() { $this->publishes([ __DIR__.'/path/to/config/courier.php' => config_path('courier.php'), ]); } 現(xiàn)在,當(dāng)擴(kuò)展包的用戶(hù)執(zhí)行 Laravel 的 vendor:publish 命令,擴(kuò)展包文件將被復(fù)制到指定的目錄中,發(fā)布配置后,就可以像其它配置...
http://m.o2fo.com/laravel_8/laravel_8-8r363htd.html...「連接」和「隊(duì)列」之間的區(qū)別非常重要。 在 config/queue.php 配置文件中,有一個(gè) connections 配置選項(xiàng)。 此選項(xiàng)定義到后端服務(wù)(如 Amazon SQS、Beanstalk 或 Redis)的特定連接。 然而,任何給定的隊(duì)列連接都可能有多個(gè)「隊(duì)列」,這...
http://m.o2fo.com/laravel_8/laravel_8-e38a3htu.html要使用 database 隊(duì)列驅(qū)動(dòng)程序,你需要一個(gè)數(shù)據(jù)庫(kù)表來(lái)保存任務(wù)。要生成創(chuàng)建此表的遷移,請(qǐng)運(yùn)行 queue:table Artisan 命令。一旦遷移已經(jīng)創(chuàng)建,你可以使用 migrate 命令遷移你的數(shù)據(jù)庫(kù):php artisan queue:table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-slq23htw.html列出的隊(duì)列驅(qū)動(dòng)需要如下的依賴(lài): Amazon SQS: aws/aws-sdk-php ~3.0Beanstalkd: pda/pheanstalk ~4.0Redis: predis/predis ~1.0 或 phpredis PHP 擴(kuò)展
http://m.o2fo.com/laravel_8/laravel_8-kzmx3hty.html...的其中一個(gè)方法是,通過(guò) Artisan 命令行上的 --tries 開(kāi)關(guān):php artisan queue:work --tries=3Copy但是,可以采用更細(xì)粒度的方法:定義任務(wù)類(lèi)本身的最大嘗試次數(shù)。如果在任務(wù)類(lèi)上指定了最大嘗試次數(shù),它將優(yōu)先于命令行上提供的值:<?p...
http://m.o2fo.com/laravel_8/laravel_8-4ywv3huf.html...表??梢允褂?Artisan 命令 queue:batches-table 生成此遷移:php artisan queue:batches-table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-q16e3hul.html...你可能希望優(yōu)先考慮如何處理隊(duì)列。例如,在 config/queue.php 中,你可以將你的 redis 連接的默認(rèn) queue 設(shè)置為 low。然而,有時(shí)你可能希望將一個(gè)任務(wù)推到一個(gè) high 優(yōu)先級(jí)隊(duì)列,就像這樣:dispatch((new Job)->onQueue('high')); 要啟動(dòng)...
http://m.o2fo.com/laravel_8/laravel_8-5jp33huw.html抱歉,暫時(shí)沒(méi)有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的教程
w3cschool 建議您:
... from 方法可能會(huì)很麻煩。因此,您可以在您的 config/mail.php 文件中指定一個(gè)全局的「發(fā)件人」地址。當(dāng)某個(gè) mailable 類(lèi)沒(méi)有指定「發(fā)件人」時(shí),它將使用該全局「發(fā)件人」:'from' => ['address' => 'example@example.com'...
http://m.o2fo.com/laravel_8/laravel_8-4vab3hpz.html...tifications:table 命令來(lái)生成一個(gè)包含相應(yīng)的數(shù)據(jù)表的遷移:php artisan notifications:table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-zi7w3hsc.html...該方法應(yīng)該接收兩個(gè)參數(shù): $notifiable 和 $notification:<?php namespace App\Channels; use Illuminate\Notifications\Notification; class VoiceChannel { /** * 發(fā)送指定的通知。 * * @param mixed $notifiable * @param \Illuminate\Notifications\Notification $notification * @retur...
http://m.o2fo.com/laravel_8/laravel_8-jpi53ht4.html...nction boot() { $this->publishes([ __DIR__.'/path/to/config/courier.php' => config_path('courier.php'), ]); } 現(xiàn)在,當(dāng)擴(kuò)展包的用戶(hù)執(zhí)行 Laravel 的 vendor:publish 命令,擴(kuò)展包文件將被復(fù)制到指定的目錄中,發(fā)布配置后,就可以像其它配置...
http://m.o2fo.com/laravel_8/laravel_8-8r363htd.html...「連接」和「隊(duì)列」之間的區(qū)別非常重要。 在 config/queue.php 配置文件中,有一個(gè) connections 配置選項(xiàng)。 此選項(xiàng)定義到后端服務(wù)(如 Amazon SQS、Beanstalk 或 Redis)的特定連接。 然而,任何給定的隊(duì)列連接都可能有多個(gè)「隊(duì)列」,這...
http://m.o2fo.com/laravel_8/laravel_8-e38a3htu.html要使用 database 隊(duì)列驅(qū)動(dòng)程序,你需要一個(gè)數(shù)據(jù)庫(kù)表來(lái)保存任務(wù)。要生成創(chuàng)建此表的遷移,請(qǐng)運(yùn)行 queue:table Artisan 命令。一旦遷移已經(jīng)創(chuàng)建,你可以使用 migrate 命令遷移你的數(shù)據(jù)庫(kù):php artisan queue:table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-slq23htw.html列出的隊(duì)列驅(qū)動(dòng)需要如下的依賴(lài): Amazon SQS: aws/aws-sdk-php ~3.0Beanstalkd: pda/pheanstalk ~4.0Redis: predis/predis ~1.0 或 phpredis PHP 擴(kuò)展
http://m.o2fo.com/laravel_8/laravel_8-kzmx3hty.html...的其中一個(gè)方法是,通過(guò) Artisan 命令行上的 --tries 開(kāi)關(guān):php artisan queue:work --tries=3Copy但是,可以采用更細(xì)粒度的方法:定義任務(wù)類(lèi)本身的最大嘗試次數(shù)。如果在任務(wù)類(lèi)上指定了最大嘗試次數(shù),它將優(yōu)先于命令行上提供的值:<?p...
http://m.o2fo.com/laravel_8/laravel_8-4ywv3huf.html...表。可以使用 Artisan 命令 queue:batches-table 生成此遷移:php artisan queue:batches-table php artisan migrate
http://m.o2fo.com/laravel_8/laravel_8-q16e3hul.html...你可能希望優(yōu)先考慮如何處理隊(duì)列。例如,在 config/queue.php 中,你可以將你的 redis 連接的默認(rèn) queue 設(shè)置為 low。然而,有時(shí)你可能希望將一個(gè)任務(wù)推到一個(gè) high 優(yōu)先級(jí)隊(duì)列,就像這樣:dispatch((new Job)->onQueue('high')); 要啟動(dòng)...
http://m.o2fo.com/laravel_8/laravel_8-5jp33huw.html抱歉,暫時(shí)沒(méi)有相關(guān)的文章
w3cschool 建議您: