public function cards($parameters = [])
    {
        $cards = [];

        $parameters = array_merge(['limit' => 24], $parameters);

        $stripeCards = $this->asStripeCustomer()->sources->all(
            ['object' => 'card'] + $parameters
        );

        if (! is_null($stripeCards)) {
            foreach ($stripeCards->data as $card) {
                $cards[] = new Card($this, $card);
            }
        }

        return new Collection($cards);
    }
public function cards($parameters = [])
    {
        $cards = [];

        $parameters = array_merge(['limit' => 24], $parameters);

        $stripeCards = $this->asStripeCustomer()->sources->all(
            ['object' => 'card'] + $parameters
        );

        if (! is_null($stripeCards)) {
            foreach ($stripeCards->data as $card) {
                $cards[] = new Card($this, $card);
            }
        }

        return new Collection($cards);
    }
public function cards ( $ parameters = [ ] ) { $ cards = [ ] ; $ parameters = array_merge ( [ 'limit' => 24 ] , $ parameters ) ; $ stripeCards = $ this -> asStripeCustomer ( ) -> sources -> all ( [ 'object' => 'card' ] + $ parameters ) ; if ( ! is_null ( $ stripeCards ) ) { foreach ( $ stripeCards -> data as $ card ) { $ cards [ ] = new Card ( $ this , $ card ) ; } } return new Collection ( $ cards ) ; }
Get a collection of the entity's cards.

@param  array  $parameters
@return \Illuminate\Support\Collection
Get a collection of the entity s cards .