Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function filteredStops($filter)
- {
- return $this->stops()->when(!empty($stops), function ($query) use ($filter) {
- $query->whereIn('name', $filter);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement