I am trying to do a query in my Laravel app and I want to use a normal structure for my query. This class either does use Eloquent so I need to find something to do a query
You could shorten your result handling by writing
$objects = new Collection(array_map(function($entry) { return (new static())->setRawAttributes((array) $entry, true); }, $result));