Skip to content

Commit 4a10101

Browse files
committed
wip
1 parent 82cfef7 commit 4a10101

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77

88
Handle incoming emails in your Laravel application.
99

10+
``` php
11+
Mailbox::from('{username}@gmail.com', function(InboundEmail $email, $username) {
12+
// Access email attributes and content
13+
$subject = $email->subject();
14+
15+
$email->reply(new ReplyMailable);
16+
});
17+
```
18+
1019
## Installation
1120

1221
You can install the package via composer:
@@ -18,8 +27,7 @@ composer require beyondcode/laravel-mailbox
1827
## Usage
1928

2029
``` php
21-
$Mailbox = new BeyondCode\Mailbox();
22-
echo $Mailbox->echoPhrase('Hello, BeyondCode!');
30+
2331
```
2432

2533
### Testing

0 commit comments

Comments
 (0)