后台图片管理支持通过图片路径名称搜索。Fixed #640
This commit is contained in:
@@ -64,7 +64,9 @@ class ImageController extends Controller
|
||||
});
|
||||
|
||||
foreach ($words as $word) {
|
||||
$builder->where('origin_name', 'like', "%{$word}%")->orWhere('alias_name', 'like', "%{$word}%");
|
||||
$builder->where('name', 'like', "%{$word}%")
|
||||
->where('origin_name', 'like', "%{$word}%")
|
||||
->orWhere('alias_name', 'like', "%{$word}%");
|
||||
}
|
||||
})->latest()->paginate(40);
|
||||
$images->getCollection()->each(function (Image $image) {
|
||||
|
||||
Reference in New Issue
Block a user