Closed ncharalampidis closed 5 months ago
Removes when and tap functions from scout Builder and replaces them Conditionable and Tappable traits.
This way we can also use the "unless" function and also use the "when" and "tap" higher order implementations:
Example::search('foo') ->when($request->has('bar'))->where('bar', $request->bar) ->get();
Removes when and tap functions from scout Builder and replaces them Conditionable and Tappable traits.
This way we can also use the "unless" function and also use the "when" and "tap" higher order implementations: