src/mako/database/midgard/ResultSet.php
public function include($includes)
	{
		$items = $this->items;

		(function() use ($includes, $items): void
		{
			$this->including($includes)->loadIncludes($items);
		})->bindTo($this->items[0]->builder(), Query::class)();

		return $this;
	}
public function include($includes)
	{
		$items = $this->items;

		(function() use ($includes, $items): void
		{
			$this->including($includes)->loadIncludes($items);
		})->bindTo($this->items[0]->builder(), Query::class)();

		return $this;
	}
public function include ( $ includes ) { $ items = $ this -> items ; ( function ( ) use ( $ includes , $ items ) : void { $ this -> including ( $ includes ) -> loadIncludes ( $ items ) ; } ) -> bindTo ( $ this -> items [ 0 ] -> builder ( ) , Query :: class ) ( ) ; return $ this ; }
Eager loads relations on the collection.

@param  string|array $includes Relation or array of relations to eager load
@return $this
Eager loads relations on the collection .