Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
introwit committed Sep 19, 2018
1 parent f687118 commit 10b93f0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to the Laravel Mail Viewer be documented in this file

## v1.0.1 (20-09-2018)
- Updated readme

## v1.0.0 (19-09-2018)
- Added Tests
- First major stable release
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ return [
| URL where you want to view the mails
|--------------------------------------------------------------------------
|
| This is the URL where you can view all the mailables
| registered in your application.
| This is the URL where you can view all the
| mailables registered above.
|
*/

Expand All @@ -64,7 +64,7 @@ return [
|
*/

'allowed_environments' => ['local', 'staging'],
'allowed_environments' => ['local', 'staging', 'testing'],

/*
|--------------------------------------------------------------------------
Expand All @@ -83,6 +83,20 @@ return [
];
```

## How to use

- After setting up the config values as described above, you can see the list of all mailables by visiting the `/mails` route (considering the default url is 'mails' in the config file). You can modify it to whatever you want as per your needs.

- You can also restrict the environments the package should list the mailables in. By default, the `allowed_environments` config is set to allow 3 environments: `local`, `staging` & `testing`. You can further secure it using the `middlewares` config.

- Default view:

List of all mails | A particular mail rendered
:-------------------------:|:-------------------------:
![](https://user-images.githubusercontent.com/11228182/45781093-bb59ef00-bc7c-11e8-9d03-64cf245fd82c.png) | ![](https://user-images.githubusercontent.com/11228182/45780701-c3fdf580-bc7b-11e8-9f48-0d883a640010.png)

- This package supports the option of overriding the package views that Laravel provides. You can modify the view using [these instructions from the Larvel docs](https://laravel.com/docs/packages#views), as per your needs.

## Testing

You can run the tests with:
Expand Down

0 comments on commit 10b93f0

Please sign in to comment.