src/Card.php
/**
     * Generate a card instance with a fake number.
     *
     * @param  string  $number
     * @return self
     */
Generate a card instance with a fake number.
@param  string  $number
@return self
Generate a card instance with a fake number . @param string $number @return self
public static function fake(string $number): self
    {
        return new static(
            $number,
            Carbon::now()->addYear()->format('my'),
            mt_rand(100, 999)
        );
    }
public static function fake ( string $ number ) : self { return new static ( $ number , Carbon :: now ( ) -> addYear ( ) -> format ( 'my' ) , mt_rand ( 100 , 999 ) ) ; }
Generate a card instance with a fake number.
Generate a card instance with a fake number .