filter post
This commit is contained in:
parent
8477728363
commit
a1b44653ef
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue