...。對(duì)于一個(gè)新建的 Laravel 應(yīng)用程序,你只需要在 config/app.php 配置文件的 providers 數(shù)組中取消對(duì)該提供者的注釋即可。 該提供者將允許你注冊(cè)廣播授權(quán)路由和回調(diào)。
http://m.o2fo.com/laravel_8/laravel_8-ld8m3h8y.htmllaravel-websockets 是適用于 Laravel 的純 PHP,與 Pusher 兼容的 websocket 軟件包。 該軟件包使您無(wú)需外部 Websocket 提供商或 Node 即可充分利用 Laravel 廣播的全部功能。 有關(guān)安裝和使用此軟件包的更多信息,請(qǐng)查閱其官方文檔。
http://m.o2fo.com/laravel_8/laravel_8-gp1j3h94.html...ast 接口。這會(huì)讓 Laravel 在事件被觸發(fā)時(shí)廣播該事件:<?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contract...
http://m.o2fo.com/laravel_8/laravel_8-7em33h9a.html...過(guò)的用戶才可以收聽(tīng)私有頻道。我們可以在 routes/channels.php 文件中,定義我們頻道的授權(quán)規(guī)則。 在這個(gè)例子中,我們需要去驗(yàn)證任何試圖收聽(tīng) order.1 私有頻道的用戶,是否是訂單實(shí)際上的創(chuàng)建者:Broadcast::channel('order.{orderId}...
http://m.o2fo.com/laravel_8/laravel_8-t1vw3h9b.html... 和 PresenceChannels 實(shí)例代表需要頻道授權(quán)的私有頻道:<?php namespace App\Events; use App\Models\User; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; us...
http://m.o2fo.com/laravel_8/laravel_8-a9xf3h9d.html...道授權(quán)的邏輯。這是在你的應(yīng)用程序附帶的 routes/channels.php 文件中完成的 。 在這個(gè)文件中,你可以使用 Broadcast::channel 方法注冊(cè)頻道授權(quán)回調(diào):Broadcast::channel('order.{orderId}', function ($user, $orderId) { return $user->id === Order::find...
http://m.o2fo.com/laravel_8/laravel_8-p23d3h9l.html...緩存提供了豐富而統(tǒng)一的 API,其緩存配置位于 config/cache.php 文件中。在該文件中你可以指定應(yīng)用默認(rèn)使用哪個(gè)緩存驅(qū)動(dòng)。Laravel 支持當(dāng)前流行的后端緩存,例如 Memcached 和 Redis。 緩存配置文件還包含各種其他選項(xiàng),這些選項(xiàng)都記...
http://m.o2fo.com/laravel_8/laravel_8-vaj53ha5.html...ger('expiration'); }); 提示:你也可以使用 Artisan 命令 php artisan cache:table 來(lái)生成合適的遷移。
http://m.o2fo.com/laravel_8/laravel_8-fz1s3hao.html...展包 。你可以把所有的 Memcached 服務(wù)器都列在 config/cache.php 配置文件中:'memcached' => [ [ 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 ], ],Copy 你還可以將 host 選項(xiàng)設(shè)置為 UNIX socket 路徑。如果你...
http://m.o2fo.com/laravel_8/laravel_8-efva3hap.html在使用 Laravel 的 Redis 緩存之前,你需要通過(guò) PECL 安裝 PhpRedis PHP 擴(kuò)展,或者通過(guò) Composer 安裝 predis/predis 包(~1.0)。如需了解更多關(guān)于 Redis 的配置,請(qǐng)參考 Laravel Redis 文檔。
http://m.o2fo.com/laravel_8/laravel_8-isza3haq.html抱歉,暫時(shí)沒(méi)有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒(méi)有相關(guān)的教程
w3cschool 建議您:
...。對(duì)于一個(gè)新建的 Laravel 應(yīng)用程序,你只需要在 config/app.php 配置文件的 providers 數(shù)組中取消對(duì)該提供者的注釋即可。 該提供者將允許你注冊(cè)廣播授權(quán)路由和回調(diào)。
http://m.o2fo.com/laravel_8/laravel_8-ld8m3h8y.htmllaravel-websockets 是適用于 Laravel 的純 PHP,與 Pusher 兼容的 websocket 軟件包。 該軟件包使您無(wú)需外部 Websocket 提供商或 Node 即可充分利用 Laravel 廣播的全部功能。 有關(guān)安裝和使用此軟件包的更多信息,請(qǐng)查閱其官方文檔。
http://m.o2fo.com/laravel_8/laravel_8-gp1j3h94.html...ast 接口。這會(huì)讓 Laravel 在事件被觸發(fā)時(shí)廣播該事件:<?php namespace App\Events; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contract...
http://m.o2fo.com/laravel_8/laravel_8-7em33h9a.html...過(guò)的用戶才可以收聽(tīng)私有頻道。我們可以在 routes/channels.php 文件中,定義我們頻道的授權(quán)規(guī)則。 在這個(gè)例子中,我們需要去驗(yàn)證任何試圖收聽(tīng) order.1 私有頻道的用戶,是否是訂單實(shí)際上的創(chuàng)建者:Broadcast::channel('order.{orderId}...
http://m.o2fo.com/laravel_8/laravel_8-t1vw3h9b.html... 和 PresenceChannels 實(shí)例代表需要頻道授權(quán)的私有頻道:<?php namespace App\Events; use App\Models\User; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; us...
http://m.o2fo.com/laravel_8/laravel_8-a9xf3h9d.html...道授權(quán)的邏輯。這是在你的應(yīng)用程序附帶的 routes/channels.php 文件中完成的 。 在這個(gè)文件中,你可以使用 Broadcast::channel 方法注冊(cè)頻道授權(quán)回調(diào):Broadcast::channel('order.{orderId}', function ($user, $orderId) { return $user->id === Order::find...
http://m.o2fo.com/laravel_8/laravel_8-p23d3h9l.html...緩存提供了豐富而統(tǒng)一的 API,其緩存配置位于 config/cache.php 文件中。在該文件中你可以指定應(yīng)用默認(rèn)使用哪個(gè)緩存驅(qū)動(dòng)。Laravel 支持當(dāng)前流行的后端緩存,例如 Memcached 和 Redis。 緩存配置文件還包含各種其他選項(xiàng),這些選項(xiàng)都記...
http://m.o2fo.com/laravel_8/laravel_8-vaj53ha5.html...ger('expiration'); }); 提示:你也可以使用 Artisan 命令 php artisan cache:table 來(lái)生成合適的遷移。
http://m.o2fo.com/laravel_8/laravel_8-fz1s3hao.html...展包 。你可以把所有的 Memcached 服務(wù)器都列在 config/cache.php 配置文件中:'memcached' => [ [ 'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100 ], ],Copy 你還可以將 host 選項(xiàng)設(shè)置為 UNIX socket 路徑。如果你...
http://m.o2fo.com/laravel_8/laravel_8-efva3hap.html在使用 Laravel 的 Redis 緩存之前,你需要通過(guò) PECL 安裝 PhpRedis PHP 擴(kuò)展,或者通過(guò) Composer 安裝 predis/predis 包(~1.0)。如需了解更多關(guān)于 Redis 的配置,請(qǐng)參考 Laravel Redis 文檔。
http://m.o2fo.com/laravel_8/laravel_8-isza3haq.html抱歉,暫時(shí)沒(méi)有相關(guān)的文章
w3cschool 建議您: