public function without($relations)
{
if (is_string($relations)) {
$relations = func_get_args();
}
$this->eagerLoad = array_diff_key($this->eagerLoad, array_flip($relations));
return $this;
}
/** * Prevent the specified relations from being eager loaded. * * @param mixed $relations * @return $this * @static */ public static function without($relations) { return \Illuminate\Database\Eloquent\Builder::without($relations); }