芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Bouncer/Scopes/DefaultScope.php
scope) || $this->onlyScopeRelations) { return $query; } if (is_null($table)) { $table = $query->getModel()->getTable(); } return $this->applyToQuery($query, $table); } public function applyToRelationQuery($query, $table) { if (is_null($this->scope)) { return $query; } return $this->applyToQuery($query, $table); } protected function applyToQuery($query, $table) { return $query->where(function ($query) use ($table) { $query->where("{$table}.scope", $this->scope) ->orWhereNull("{$table}.scope"); }); } }