Mmanos\Social\SocialTrait::provider PHP Method

provider() public method

Return the reqeusted social provider associated with this user.
public provider ( string $name )
$name string
    public function provider($name)
    {
        $providers = $this->providers->filter(function ($provider) use($name) {
            return strtolower($provider->provider) == strtolower($name);
        });
        return $providers->first();
    }