...、事件等。通過運行 Artisan 命令 tinker 進入 Tinker 環(huán)境。php artisan tinker 你可以通過 vendor:publish 命令發(fā)布 Tinker 配置文件:php artisan vendor:publish --provider="Laravel\Tinker\TinkerServiceProvider" 注意:Dispatchable 類中的 dispatch 輔助函數和 dispat...
http://m.o2fo.com/laravel_8/laravel_8-oabd3h64.html...過 describe 方法來為命令添加描述。這個描述會在你執(zhí)行 php artisan list 或 php artisan help 命令時顯示:Artisan::command('build {project}', function ($project) { $this->info("Building {$project}!"); })->describe('Build the project');
http://m.o2fo.com/laravel_8/laravel_8-tauw3h6c.html...以下命令將會設置 user 的值為 ['foo', 'bar'] :php artisan email:send foo barCopy 當定義一個接收數組的選項的時候,傳遞給命令的每一個選項值都應該添加選項名稱為前綴:email:send {user} {--id=*} php artisan email:send --id=1 --id=2
http://m.o2fo.com/laravel_8/laravel_8-r5vo3h6i.html所有關于事件廣播的配置都保存在 config/broadcasting.php 配置文件中。 Laravel 自帶了幾個廣播驅動: Pusher Channels, Redis, 和一個用于本地開發(fā)與調試的 log 驅動。另外,還有一個 null 驅動允許你完全關閉廣播系統(tǒng)。每一個驅動的示例...
http://m.o2fo.com/laravel_8/laravel_8-6yfz3h8x.html通常, 在你的 queue.php 配置文件中, 每個廣播事件都放在指定默認隊列連接的默認隊列中。你可以在事件類中定義一個 broadcastQueue 屬性來自定義廣播的隊列。此屬性應指定廣播時你要使用隊列的名稱:/** * 要放置事件的隊列的...
http://m.o2fo.com/laravel_8/laravel_8-is563h9g.html...ct(['name' => 'taylor', 'languages' => ['php', 'javascript']]); $flattened = $collection->flatten(); $flattened->all(); // ['taylor', 'php', 'javascript']; 你可以選擇性地傳入「深度」參數:$collection = collec...
http://m.o2fo.com/laravel_8/laravel_8-3w153hd9.html...步學習 Laravel 的懶集合之前,我們先花點時間熟悉一下 PHP generators。 為了補充已經很強大的 Collection 類, LazyCollection 類利用了 PHP 的 generators 來允許你在保持低內存使用率的同時使用非常大的數據集。 例如,假設你的應用需要...
http://m.o2fo.com/laravel_8/laravel_8-213i3hg0.htmlArr::flatten 函數將多維數組中數組的值取出平鋪為一維數組:use Illuminate\Support\Arr; $array = ['name' => 'Joe', 'languages' => ['PHP', 'Ruby']]; $flattened = Arr::flatten($array); // ['Joe', 'PHP', 'Ruby']
http://m.o2fo.com/laravel_8/laravel_8-m6w73hjn.html...使用 Mailgun 驅動,首先必須安裝 Guzzle, 之后將 config/mail.php 配置文件中的 default 選項設置為 mailgun. 接下來,確認 config/services.php 配置文件包含以下選項:'mailgun' => [ 'domain' => 'your-mailgun-domain', 'secret' =&...
http://m.o2fo.com/laravel_8/laravel_8-1zo83hps.html...tmailer-postmark 然后,安裝 Guzzle 并為 postmark 設置 config/mail.php 配置文件中的 default 選項。最后,確認你的 config/services.php 配置文件包含以下選項:'postmark' => [ 'token' => 'your-postmark-token', ],
http://m.o2fo.com/laravel_8/laravel_8-9kf63hpt.html抱歉,暫時沒有相關的微課
w3cschool 建議您:
抱歉,暫時沒有相關的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關的教程
w3cschool 建議您:
...、事件等。通過運行 Artisan 命令 tinker 進入 Tinker 環(huán)境。php artisan tinker 你可以通過 vendor:publish 命令發(fā)布 Tinker 配置文件:php artisan vendor:publish --provider="Laravel\Tinker\TinkerServiceProvider" 注意:Dispatchable 類中的 dispatch 輔助函數和 dispat...
http://m.o2fo.com/laravel_8/laravel_8-oabd3h64.html...過 describe 方法來為命令添加描述。這個描述會在你執(zhí)行 php artisan list 或 php artisan help 命令時顯示:Artisan::command('build {project}', function ($project) { $this->info("Building {$project}!"); })->describe('Build the project');
http://m.o2fo.com/laravel_8/laravel_8-tauw3h6c.html...以下命令將會設置 user 的值為 ['foo', 'bar'] :php artisan email:send foo barCopy 當定義一個接收數組的選項的時候,傳遞給命令的每一個選項值都應該添加選項名稱為前綴:email:send {user} {--id=*} php artisan email:send --id=1 --id=2
http://m.o2fo.com/laravel_8/laravel_8-r5vo3h6i.html所有關于事件廣播的配置都保存在 config/broadcasting.php 配置文件中。 Laravel 自帶了幾個廣播驅動: Pusher Channels, Redis, 和一個用于本地開發(fā)與調試的 log 驅動。另外,還有一個 null 驅動允許你完全關閉廣播系統(tǒng)。每一個驅動的示例...
http://m.o2fo.com/laravel_8/laravel_8-6yfz3h8x.html通常, 在你的 queue.php 配置文件中, 每個廣播事件都放在指定默認隊列連接的默認隊列中。你可以在事件類中定義一個 broadcastQueue 屬性來自定義廣播的隊列。此屬性應指定廣播時你要使用隊列的名稱:/** * 要放置事件的隊列的...
http://m.o2fo.com/laravel_8/laravel_8-is563h9g.html...ct(['name' => 'taylor', 'languages' => ['php', 'javascript']]); $flattened = $collection->flatten(); $flattened->all(); // ['taylor', 'php', 'javascript']; 你可以選擇性地傳入「深度」參數:$collection = collec...
http://m.o2fo.com/laravel_8/laravel_8-3w153hd9.html...步學習 Laravel 的懶集合之前,我們先花點時間熟悉一下 PHP generators。 為了補充已經很強大的 Collection 類, LazyCollection 類利用了 PHP 的 generators 來允許你在保持低內存使用率的同時使用非常大的數據集。 例如,假設你的應用需要...
http://m.o2fo.com/laravel_8/laravel_8-213i3hg0.htmlArr::flatten 函數將多維數組中數組的值取出平鋪為一維數組:use Illuminate\Support\Arr; $array = ['name' => 'Joe', 'languages' => ['PHP', 'Ruby']]; $flattened = Arr::flatten($array); // ['Joe', 'PHP', 'Ruby']
http://m.o2fo.com/laravel_8/laravel_8-m6w73hjn.html...使用 Mailgun 驅動,首先必須安裝 Guzzle, 之后將 config/mail.php 配置文件中的 default 選項設置為 mailgun. 接下來,確認 config/services.php 配置文件包含以下選項:'mailgun' => [ 'domain' => 'your-mailgun-domain', 'secret' =&...
http://m.o2fo.com/laravel_8/laravel_8-1zo83hps.html...tmailer-postmark 然后,安裝 Guzzle 并為 postmark 設置 config/mail.php 配置文件中的 default 選項。最后,確認你的 config/services.php 配置文件包含以下選項:'postmark' => [ 'token' => 'your-postmark-token', ],
http://m.o2fo.com/laravel_8/laravel_8-9kf63hpt.html抱歉,暫時沒有相關的文章
w3cschool 建議您: