您可以在 config/horizon.php 的配置文件中配置多少秒算是「長等待」。你可以用該文件中的 waits 配置選項(xiàng)控制每個(gè) 連接 / 隊(duì)列 組合的長等待閾值:'waits' => [ 'redis:default' => 60, 'redis:critical,high' => 90, ],
http://m.o2fo.com/laravel_8/laravel_8-1bu63ihi.html...需的密鑰。生成的密鑰一般情況下不應(yīng)放在版本控制中:php artisan passport:keys 可以使用 Passport::loadKeysFrom 方法來自定義 Passport 密鑰的加載路徑:/** * Register any authentication / authorization services. * * @return void */ public function boot() { $this-...
http://m.o2fo.com/laravel_8/laravel_8-mpgf3ihq.html您可以使用 vendor:publish 命令發(fā)布配置文件:php artisan vendor:publish --tag=passport-config 發(fā)布配置文件后,可以通過將應(yīng)用程序的加密密鑰定義為環(huán)境變量來加載它們:PASSPORT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- <private key here> -----END ...
http://m.o2fo.com/laravel_8/laravel_8-bdj13ihr.html如果你不想使用 Passport 默認(rèn)的遷移,你需要在 AppServiceProvider 中的 register 方法使用 Passport::ignoreMigrations。使用 php artisan vendor:publish --tag=passport-migrations 會(huì)在 /database/migrations 下生成默認(rèn)的遷移文件,可以再自行進(jìn)行修改。
http://m.o2fo.com/laravel_8/laravel_8-w8hz3ihs.html...關(guān)客戶端的信息,最終會(huì)給你提供客戶端的 ID 和密鑰:php artisan passport:client
http://m.o2fo.com/laravel_8/laravel_8-8psc3ihz.html在使用 PKCE 的授權(quán)碼令牌之前,您需要?jiǎng)?chuàng)建一個(gè)啟用了 PKCE 的客戶機(jī)。您可以使用 passport:client 命令和 --public 選項(xiàng)來完成此操作:php artisan passport:client --public
http://m.o2fo.com/laravel_8/laravel_8-1q4w3iie.html在應(yīng)用程序通過密碼授權(quán)機(jī)制來發(fā)布令牌之前,在 passport:client 命令后加上 --password 參數(shù)來創(chuàng)建密碼授權(quán)的客戶端。如果你已經(jīng)運(yùn)行了 passport:install 命令,則不需要再運(yùn)行此命令:php artisan passport:client --password
http://m.o2fo.com/laravel_8/laravel_8-takw3iim.html...用的用戶提供者。 指定的服務(wù)提供者名稱應(yīng)與 config/auth.php 配置文件中定義的有效提供者匹配。 然后,您可以使用中間件保護(hù)您的路由 以確保僅授權(quán)來自 guard 指定提供者的用戶。
http://m.o2fo.com/laravel_8/laravel_8-h7rl3iip.html...在模型中定義 findForPassport 方法來自定義驗(yàn)證行為:<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; /*...
http://m.o2fo.com/laravel_8/laravel_8-vsnx3iiq.html...型中定義一個(gè) validateForPassportPasswordGrant 方法來實(shí)現(xiàn):<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Hash; use Laravel\Passport\HasApiTokens; class User extends Authenticat...
http://m.o2fo.com/laravel_8/laravel_8-qkdx3iir.html抱歉,暫時(shí)沒有相關(guān)的微課
w3cschool 建議您:
抱歉,暫時(shí)沒有相關(guān)的視頻課程
w3cschool 建議您:
抱歉,暫時(shí)沒有相關(guān)的教程
w3cschool 建議您:
您可以在 config/horizon.php 的配置文件中配置多少秒算是「長等待」。你可以用該文件中的 waits 配置選項(xiàng)控制每個(gè) 連接 / 隊(duì)列 組合的長等待閾值:'waits' => [ 'redis:default' => 60, 'redis:critical,high' => 90, ],
http://m.o2fo.com/laravel_8/laravel_8-1bu63ihi.html...需的密鑰。生成的密鑰一般情況下不應(yīng)放在版本控制中:php artisan passport:keys 可以使用 Passport::loadKeysFrom 方法來自定義 Passport 密鑰的加載路徑:/** * Register any authentication / authorization services. * * @return void */ public function boot() { $this-...
http://m.o2fo.com/laravel_8/laravel_8-mpgf3ihq.html您可以使用 vendor:publish 命令發(fā)布配置文件:php artisan vendor:publish --tag=passport-config 發(fā)布配置文件后,可以通過將應(yīng)用程序的加密密鑰定義為環(huán)境變量來加載它們:PASSPORT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- <private key here> -----END ...
http://m.o2fo.com/laravel_8/laravel_8-bdj13ihr.html如果你不想使用 Passport 默認(rèn)的遷移,你需要在 AppServiceProvider 中的 register 方法使用 Passport::ignoreMigrations。使用 php artisan vendor:publish --tag=passport-migrations 會(huì)在 /database/migrations 下生成默認(rèn)的遷移文件,可以再自行進(jìn)行修改。
http://m.o2fo.com/laravel_8/laravel_8-w8hz3ihs.html...關(guān)客戶端的信息,最終會(huì)給你提供客戶端的 ID 和密鑰:php artisan passport:client
http://m.o2fo.com/laravel_8/laravel_8-8psc3ihz.html在使用 PKCE 的授權(quán)碼令牌之前,您需要?jiǎng)?chuàng)建一個(gè)啟用了 PKCE 的客戶機(jī)。您可以使用 passport:client 命令和 --public 選項(xiàng)來完成此操作:php artisan passport:client --public
http://m.o2fo.com/laravel_8/laravel_8-1q4w3iie.html在應(yīng)用程序通過密碼授權(quán)機(jī)制來發(fā)布令牌之前,在 passport:client 命令后加上 --password 參數(shù)來創(chuàng)建密碼授權(quán)的客戶端。如果你已經(jīng)運(yùn)行了 passport:install 命令,則不需要再運(yùn)行此命令:php artisan passport:client --password
http://m.o2fo.com/laravel_8/laravel_8-takw3iim.html...用的用戶提供者。 指定的服務(wù)提供者名稱應(yīng)與 config/auth.php 配置文件中定義的有效提供者匹配。 然后,您可以使用中間件保護(hù)您的路由 以確保僅授權(quán)來自 guard 指定提供者的用戶。
http://m.o2fo.com/laravel_8/laravel_8-h7rl3iip.html...在模型中定義 findForPassport 方法來自定義驗(yàn)證行為:<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; /*...
http://m.o2fo.com/laravel_8/laravel_8-vsnx3iiq.html...型中定義一個(gè) validateForPassportPasswordGrant 方法來實(shí)現(xiàn):<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Hash; use Laravel\Passport\HasApiTokens; class User extends Authenticat...
http://m.o2fo.com/laravel_8/laravel_8-qkdx3iir.html抱歉,暫時(shí)沒有相關(guān)的文章
w3cschool 建議您: