where('phone', $phone); } /** * Summary of scopeNotAgent * @param mixed $query * @param mixed $agentId * @return mixed */ public function scopeNotAgent($query, $agentId){ return $query->where('agent_id', '<>', $agentId); } /** * Summary of scopeInAgent * @param mixed $query * @param mixed $agentId * @return mixed * **/ public function scopeInAgent($query, $agentId){ return $query->where('agent_id', '=', $agentId); } }