FIX: fix searching in name and overflowin of no-data message

This commit is contained in:
Michal Kváček
2016-09-27 22:04:09 +02:00
parent 36615aac21
commit 4c67d442d6
2 changed files with 2 additions and 4 deletions
+1
View File
@@ -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>',
@@ -18,4 +16,3 @@
<em>@lang('admin/fileManager.noFiles')</em>
</div>
@endforelse
</div>