public function creditsAvailable($model)
    {
        $credits = $this->config['plans'][$this->subscription->stripe_plan]['credits'];
        return $credits['limit'] - $this->creditsUsed($model);
    }
public function creditsAvailable($model)
    {
        $credits = $this->config['plans'][$this->subscription->stripe_plan]['credits'];
        return $credits['limit'] - $this->creditsUsed($model);
    }
public function creditsAvailable ( $ model ) { $ credits = $ this -> config [ 'plans' ] [ $ this -> subscription -> stripe_plan ] [ 'credits' ] ; return $ credits [ 'limit' ] - $ this -> creditsUsed ( $ model ) ; }
Checks credits available for user
@param  string $model
@return int
Checks credits available for user