Replies: 3 comments
-
also i think we can solve the issue with non-strict types) very dirty code!) ->when($request->has('types'), function($query) use ($request) {
$query = $query->whereIn('type', $request->types);
$globalTypes = collect($request->types)->filter(fn($type) =>str_contains($type, '*'));
if ($globalTypes) {
$globalTypes->map(fn($type) => $query->orWhere('type', 'LIKE', str_replace('*', '', $type) . '%'));
}
return $query;
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I'll be able to look at this more tomorrow. Will keep you posted. |
Beta Was this translation helpful? Give feedback.
0 replies
-
v2.8.0 released. Let me know if this fixes all your issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, in a project i have many different files, and i think, if we can filter files in media picker popup by acceptedFileTypes in MediaController
we can increase performance and usability)
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions