FIX: fix searching in name and overflowin of no-data message
This commit is contained in:
@@ -27,6 +27,7 @@ class Files extends Search
|
|||||||
$token = $this->tokenize($term);
|
$token = $this->tokenize($term);
|
||||||
|
|
||||||
return File::where('original_filename', 'LIKE', $token)
|
return File::where('original_filename', 'LIKE', $token)
|
||||||
|
->orWhere('name', 'LIKE', $token)
|
||||||
->orWhere('keywords', 'LIKE', $token)
|
->orWhere('keywords', 'LIKE', $token)
|
||||||
->orWhere('description', 'LIKE', $token)
|
->orWhere('description', 'LIKE', $token)
|
||||||
->orWhere('mime_type', 'LIKE', $token)
|
->orWhere('mime_type', 'LIKE', $token)
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<div class="row">
|
|
||||||
@forelse($files as $file)
|
@forelse($files as $file)
|
||||||
|
|
||||||
<div class="col-sm-4 col-md-3 text-center">
|
<div class="col-sm-4 col-md-3 text-center">
|
||||||
@include('admin.snippets.card', [
|
@include('admin.snippets.card', [
|
||||||
'body' => '<a href="'.route('upload.detail', ['id' => $file->id]).'">'.\App\Helpers\FileManager::getPreview($file).'</a>',
|
'body' => '<a href="'.route('upload.detail', ['id' => $file->id]).'">'.\App\Helpers\FileManager::getPreview($file).'</a>',
|
||||||
@@ -18,4 +16,3 @@
|
|||||||
<em>@lang('admin/fileManager.noFiles')</em>
|
<em>@lang('admin/fileManager.noFiles')</em>
|
||||||
</div>
|
</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
</div>
|
|
||||||
Reference in New Issue
Block a user