Skip to content

Commit 9d4dd59

Browse files
authored
Update Email.php
1 parent 309b97d commit 9d4dd59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Email.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
*/
2222
class Email
2323
{
24+
/**
25+
* Create random email
26+
*/
27+
public static function random($length = 10)
28+
{
29+
return Str::random($length) . '@' . Str::random(5) . '.com';
30+
}
31+
2432
/**
2533
* Check if email(s) is(are) valid. You can send one or an array of emails.
2634
*

0 commit comments

Comments
 (0)