App下載

詞條

大約有 7,000 項符合查詢結(jié)果 ,庫內(nèi)數(shù)據(jù)總量為 78,250 項。(搜索耗時:0.0047秒)

5321.Laravel 8 生成事件和監(jiān)聽器

...和監(jiān)聽器。當然,已經(jīng)存在的事件和監(jiān)聽器將保持不變:php artisan event:generateCopy

http://www.o2fo.com/laravel_8/laravel_8-53vd3hg9.html

5322.Laravel 8 定義事件

...輯。它只是一個已購買的 Order 的實例的容器。如果使用 PHP 的 serialize 函數(shù)序列化事件對象,事件使用的 SerializesModels trait 將會優(yōu)雅地序列化任何 Eloquent 模型。

http://www.o2fo.com/laravel_8/laravel_8-f67r3hgd.html

5323.Laravel 8 處理失敗任務

...failed 方法接收事件實例和導致失敗的異常作為參數(shù):<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class SendShipmentNotification implements ShouldQueue { use InteractsWithQueue; /*...

http://www.o2fo.com/laravel_8/laravel_8-eovu3hgf.html

5324.Laravel 8 事件監(jiān)聽器隊列

...接口導入到當前命名空間中,因此你可以直接使用:<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; class SendShipmentNotification implements ShouldQueue { // }Copy就是這樣!現(xiàn)在,當這個監(jiān)聽器被事件調(diào)用時...

http://www.o2fo.com/laravel_8/laravel_8-lmbo3hgg.html

5325.Laravel 8 條件監(jiān)聽隊列

...,如果 shouldQueue 方法返回 false,則不會執(zhí)行監(jiān)聽器:<?php namespace App\Listeners; use App\Events\OrderPlaced; use Illuminate\Contracts\Queue\ShouldQueue; class RewardGiftCard implements ShouldQueue { /** * 給客戶獎勵禮品卡 * * @param \App\Events\OrderPlaced $event * @...

http://www.o2fo.com/laravel_8/laravel_8-erdq3hgh.html

5326.Laravel 8 手動訪問隊列

...加載到生成的監(jiān)聽器中,并提供對這些方法的訪問:<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class SendShipmentNotification implements ShouldQueue { use InteractsWithQueue; /**...

http://www.o2fo.com/laravel_8/laravel_8-6y313hgi.html

5327.Laravel 8 分發(fā)事件

...以全局使用,你可以在應用中的任何位置進行調(diào)用:<?php namespace App\Http\Controllers; use App\Events\OrderShipped; use App\Http\Controllers\Controller; use App\Models\Order; class OrderController extends Controller { /** * 為給定的訂單發(fā)貨 * * @param int $orderId * ...

http://www.o2fo.com/laravel_8/laravel_8-dtxy3hgj.html

5328.Laravel 8 編寫事件訂閱者

...給定事件分發(fā)器上的 listen 方法來注冊事件監(jiān)聽器:<?php namespace App\Listeners; class UserEventSubscriber { /** * 處理用戶登錄事件 */ public function handleUserLogin($event) {} /** * 處理用戶注銷事件 */ public function handleUserLogout($event) {} /** * 為事件...

http://www.o2fo.com/laravel_8/laravel_8-efv33hgl.html

5329.Laravel 8 注冊事件訂閱者

...者。例如,讓我們將 UserEventSubscriber 添加到列表中:<?php namespace App\Providers; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; class EventServiceProvider extends ServiceProvider { /** * 應用的事件監(jiān)聽器映射 * * @var array */ prot...

http://www.o2fo.com/laravel_8/laravel_8-f7mz3hgm.html

5330.Laravel 8 定義監(jiān)聽器

...dle 方法中,你可以執(zhí)行任何必要的響應事件的操作:<?php namespace App\Listeners; use App\Events\OrderShipped; class SendShipmentNotification { /** * 創(chuàng)建事件監(jiān)聽器 * * @return void */ public function __construct() { // } /** * 處理事件 * * @param \App\Events\OrderS...

http://www.o2fo.com/laravel_8/laravel_8-vkiw3hgp.html

抱歉,暫時沒有相關的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

5321.Laravel 8 生成事件和監(jiān)聽器

...和監(jiān)聽器。當然,已經(jīng)存在的事件和監(jiān)聽器將保持不變:php artisan event:generateCopy

http://www.o2fo.com/laravel_8/laravel_8-53vd3hg9.html

5322.Laravel 8 定義事件

...輯。它只是一個已購買的 Order 的實例的容器。如果使用 PHP 的 serialize 函數(shù)序列化事件對象,事件使用的 SerializesModels trait 將會優(yōu)雅地序列化任何 Eloquent 模型。

http://www.o2fo.com/laravel_8/laravel_8-f67r3hgd.html

5323.Laravel 8 處理失敗任務

...failed 方法接收事件實例和導致失敗的異常作為參數(shù):<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class SendShipmentNotification implements ShouldQueue { use InteractsWithQueue; /*...

http://www.o2fo.com/laravel_8/laravel_8-eovu3hgf.html

5324.Laravel 8 事件監(jiān)聽器隊列

...接口導入到當前命名空間中,因此你可以直接使用:<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; class SendShipmentNotification implements ShouldQueue { // }Copy就是這樣!現(xiàn)在,當這個監(jiān)聽器被事件調(diào)用時...

http://www.o2fo.com/laravel_8/laravel_8-lmbo3hgg.html

5325.Laravel 8 條件監(jiān)聽隊列

...,如果 shouldQueue 方法返回 false,則不會執(zhí)行監(jiān)聽器:<?php namespace App\Listeners; use App\Events\OrderPlaced; use Illuminate\Contracts\Queue\ShouldQueue; class RewardGiftCard implements ShouldQueue { /** * 給客戶獎勵禮品卡 * * @param \App\Events\OrderPlaced $event * @...

http://www.o2fo.com/laravel_8/laravel_8-erdq3hgh.html

5326.Laravel 8 手動訪問隊列

...加載到生成的監(jiān)聽器中,并提供對這些方法的訪問:<?php namespace App\Listeners; use App\Events\OrderShipped; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class SendShipmentNotification implements ShouldQueue { use InteractsWithQueue; /**...

http://www.o2fo.com/laravel_8/laravel_8-6y313hgi.html

5327.Laravel 8 分發(fā)事件

...以全局使用,你可以在應用中的任何位置進行調(diào)用:<?php namespace App\Http\Controllers; use App\Events\OrderShipped; use App\Http\Controllers\Controller; use App\Models\Order; class OrderController extends Controller { /** * 為給定的訂單發(fā)貨 * * @param int $orderId * ...

http://www.o2fo.com/laravel_8/laravel_8-dtxy3hgj.html

5328.Laravel 8 編寫事件訂閱者

...給定事件分發(fā)器上的 listen 方法來注冊事件監(jiān)聽器:<?php namespace App\Listeners; class UserEventSubscriber { /** * 處理用戶登錄事件 */ public function handleUserLogin($event) {} /** * 處理用戶注銷事件 */ public function handleUserLogout($event) {} /** * 為事件...

http://www.o2fo.com/laravel_8/laravel_8-efv33hgl.html

5329.Laravel 8 注冊事件訂閱者

...者。例如,讓我們將 UserEventSubscriber 添加到列表中:<?php namespace App\Providers; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; class EventServiceProvider extends ServiceProvider { /** * 應用的事件監(jiān)聽器映射 * * @var array */ prot...

http://www.o2fo.com/laravel_8/laravel_8-f7mz3hgm.html

5330.Laravel 8 定義監(jiān)聽器

...dle 方法中,你可以執(zhí)行任何必要的響應事件的操作:<?php namespace App\Listeners; use App\Events\OrderShipped; class SendShipmentNotification { /** * 創(chuàng)建事件監(jiān)聽器 * * @return void */ public function __construct() { // } /** * 處理事件 * * @param \App\Events\OrderS...

http://www.o2fo.com/laravel_8/laravel_8-vkiw3hgp.html

抱歉,暫時沒有相關的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程