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);
|
||||
|
||||
return File::where('original_filename', 'LIKE', $token)
|
||||
->orWhere('name', 'LIKE', $token)
|
||||
->orWhere('keywords', 'LIKE', $token)
|
||||
->orWhere('description', 'LIKE', $token)
|
||||
->orWhere('mime_type', 'LIKE', $token)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<div class="row">
|
||||
@forelse($files as $file)
|
||||
|
||||
<div class="col-sm-4 col-md-3 text-center">
|
||||
@include('admin.snippets.card', [
|
||||
'body' => '<a href="'.route('upload.detail', ['id' => $file->id]).'">'.\App\Helpers\FileManager::getPreview($file).'</a>',
|
||||
@@ -17,5 +15,4 @@
|
||||
<div class="alert alert-info">
|
||||
<em>@lang('admin/fileManager.noFiles')</em>
|
||||
</div>
|
||||
@endforelse
|
||||
</div>
|
||||
@endforelse
|
||||
Reference in New Issue
Block a user