filter post

This commit is contained in:
root 2023-01-03 19:28:11 +00:00
parent 8477728363
commit a1b44653ef
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class MediaController extends Controller
$type = input('type');
$data = $this->Media::where('type', $type)
->with(['translations:model_id,locale,attribute_data'])
->orderBy('created_at', 'DESC')
->paginate(15);
$data->getCollection()->transform(function ($value) use ($path) {

View File

@ -11,7 +11,7 @@ scopes:
scope: FilterId
# conditions: id in (:filtered)
title:
label: Post Title
label: Title Search
type: text
modelClass: RainLab\Blog\Models\Post
scope: FilterName