You should be able to pass in a callback function with a $query parameter to allow the source records to be restricted. This would let you do the following.
$eloquentSource = new EloquentSource(\App\User::class, function($query) {
$query->where('id', 1);
});
You should be able to pass in a callback function with a
$query
parameter to allow the source records to be restricted. This would let you do the following.