...快的響應。一旦你配置了隊列驅動程序,你的 config/scout.php 配置文件中 queue 選項的值要設置為 true:'queue' => true,
http://m.o2fo.com/laravel_8/laravel_8-wz273ikp.html...重寫模型上的 searchableAs 方法來自定義模型的索引:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class Post extends Model { use Searchable; /** * Get the index name for the model. * * @return string */ public function searchable...
http://m.o2fo.com/laravel_8/laravel_8-u9wp3ikt.html...索引的數(shù)據(jù),可以覆蓋模型上的 toSearchableArray 方法:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class Post extends Model { use Searchable; /** * 獲取模型的可搜索數(shù)據(jù)。 * * @return array */ public function toSearcha...
http://m.o2fo.com/laravel_8/laravel_8-tsxz3iku.html...通過模型上的 getScoutKey 和 getScoutKeyName 方法自定義:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class User extends Model { use Searchable; /** * 獲取模型主鍵。 * * @return mixed */ public function getScoutKey() { return...
http://m.o2fo.com/laravel_8/laravel_8-val63ikv.html...ing),并且您需要搜索已刪除的模型,請設置 config /scout.php 中的 soft_delete 選項。 配置文件為 “ true”:'soft_delete' => true, 當此配置選項為 “true” 時,Scout 將不會從搜索索引中刪除軟刪除的模型。 相反,它將在索引記...
http://m.o2fo.com/laravel_8/laravel_8-u6xy3il8.html...n new MySqlSearchEngine; }); } 引擎注冊后,你可以在 config/scout.php 配置文件中指定它為默認的 Scout driver:'driver' => 'mysql',
http://m.o2fo.com/laravel_8/laravel_8-vct83ilc.html...義「macros」時, 需要實現(xiàn) service provider’s boot 方法:<?php namespace App\Providers; use Illuminate\Support\Facades\Response; use Illuminate\Support\ServiceProvider; use Laravel\Scout\Builder; class ScoutMacroServiceProvider extends ServiceProvider { /** * 注冊應用的Scout宏命...
http://m.o2fo.com/laravel_8/laravel_8-qvk73ild.html... OAuth 服務添加憑據(jù)。這些憑證應該放在你的 config/services.php 配置文件中,并且應該使用 facebook, twitter, linkedin, google, github, gitlab 或 bitbucket 作為鍵名,取決于您的應用程序所需的提供商。例如:'github' => [ 'client...
http://m.o2fo.com/laravel_8/laravel_8-hbcq3ilj.html...請求??梢酝ㄟ^ Socialite facade 的方式來訪問 Socialite:<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Laravel\Socialite\Facades\Socialite; class LoginController extends Controller { /** * 將用戶重定向到 GitHub 的授權頁面 * * @return ...
http://m.o2fo.com/laravel_8/laravel_8-gpno3ilk.html使用 Telescope,其主要配置文件將位于 config/telescope.php。此配置文件允許您配置監(jiān)聽程序選項,每個配置選項都包含其用途說明,因此請務必徹底瀏覽此文件。如果需要,您可以使用 enabled 配置選項完全禁用 Telescope 的數(shù)據(jù)收集:...
http://m.o2fo.com/laravel_8/laravel_8-wo9d3ilw.html抱歉,暫時沒有相關的微課
w3cschool 建議您:
抱歉,暫時沒有相關的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關的教程
w3cschool 建議您:
...快的響應。一旦你配置了隊列驅動程序,你的 config/scout.php 配置文件中 queue 選項的值要設置為 true:'queue' => true,
http://m.o2fo.com/laravel_8/laravel_8-wz273ikp.html...重寫模型上的 searchableAs 方法來自定義模型的索引:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class Post extends Model { use Searchable; /** * Get the index name for the model. * * @return string */ public function searchable...
http://m.o2fo.com/laravel_8/laravel_8-u9wp3ikt.html...索引的數(shù)據(jù),可以覆蓋模型上的 toSearchableArray 方法:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class Post extends Model { use Searchable; /** * 獲取模型的可搜索數(shù)據(jù)。 * * @return array */ public function toSearcha...
http://m.o2fo.com/laravel_8/laravel_8-tsxz3iku.html...通過模型上的 getScoutKey 和 getScoutKeyName 方法自定義:<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Laravel\Scout\Searchable; class User extends Model { use Searchable; /** * 獲取模型主鍵。 * * @return mixed */ public function getScoutKey() { return...
http://m.o2fo.com/laravel_8/laravel_8-val63ikv.html...ing),并且您需要搜索已刪除的模型,請設置 config /scout.php 中的 soft_delete 選項。 配置文件為 “ true”:'soft_delete' => true, 當此配置選項為 “true” 時,Scout 將不會從搜索索引中刪除軟刪除的模型。 相反,它將在索引記...
http://m.o2fo.com/laravel_8/laravel_8-u6xy3il8.html...n new MySqlSearchEngine; }); } 引擎注冊后,你可以在 config/scout.php 配置文件中指定它為默認的 Scout driver:'driver' => 'mysql',
http://m.o2fo.com/laravel_8/laravel_8-vct83ilc.html...義「macros」時, 需要實現(xiàn) service provider’s boot 方法:<?php namespace App\Providers; use Illuminate\Support\Facades\Response; use Illuminate\Support\ServiceProvider; use Laravel\Scout\Builder; class ScoutMacroServiceProvider extends ServiceProvider { /** * 注冊應用的Scout宏命...
http://m.o2fo.com/laravel_8/laravel_8-qvk73ild.html... OAuth 服務添加憑據(jù)。這些憑證應該放在你的 config/services.php 配置文件中,并且應該使用 facebook, twitter, linkedin, google, github, gitlab 或 bitbucket 作為鍵名,取決于您的應用程序所需的提供商。例如:'github' => [ 'client...
http://m.o2fo.com/laravel_8/laravel_8-hbcq3ilj.html...請求??梢酝ㄟ^ Socialite facade 的方式來訪問 Socialite:<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Laravel\Socialite\Facades\Socialite; class LoginController extends Controller { /** * 將用戶重定向到 GitHub 的授權頁面 * * @return ...
http://m.o2fo.com/laravel_8/laravel_8-gpno3ilk.html使用 Telescope,其主要配置文件將位于 config/telescope.php。此配置文件允許您配置監(jiān)聽程序選項,每個配置選項都包含其用途說明,因此請務必徹底瀏覽此文件。如果需要,您可以使用 enabled 配置選項完全禁用 Telescope 的數(shù)據(jù)收集:...
http://m.o2fo.com/laravel_8/laravel_8-wo9d3ilw.html抱歉,暫時沒有相關的文章
w3cschool 建議您: