PHP code example of xiaohuilam / searching
1. Go to this page and download the library: Download xiaohuilam/searching library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xiaohuilam / searching example snippets
"providers" => [
// ...
// 你原先 providers 的后面加下面这一行
Searching\Providers\SearchingServiceProvider::class,
]
return [
'models' => [
App\Models\User::class,
放入你的模型...
],
];
public function authorize()
{
return true; // 返回 `true` 时候表示可以搜索
}
bash
php artisan vendor:publish --tag=searching