public function isSecondUsageAttempt(Promocode $promocode)
    {
        return $promocode->users()->wherePivot(config('promocodes.related_pivot_key', 'user_id'), auth()->id())->exists();
    }
public function isSecondUsageAttempt(Promocode $promocode)
    {
        return $promocode->users()->wherePivot(config('promocodes.related_pivot_key', 'user_id'), auth()->id())->exists();
    }
public function isSecondUsageAttempt ( Promocode $ promocode ) { return $ promocode -> users ( ) -> wherePivot ( config ( 'promocodes.related_pivot_key' , 'user_id' ) , auth ( ) -> id ( ) ) -> exists ( ) ; }
Check if user is trying to apply code again.

@param Promocode $promocode

@return bool
Check if user is trying to apply code again .