Skip to content

Commit baba466

Browse files
committed
docs updated
1 parent 2baa3b8 commit baba466

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/another-auth.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
**Apart from Admin section, you can make a another auth**
66

7-
This is fully compatible with laravel `MustVerifyEmail` trait, so that you can make user to must verify email. [click here](https://laravel.com/docs/5.8/verification) more details
8-
97
```bash{1}
108
php artisan multiauth:make {guard}
119
```
@@ -15,6 +13,19 @@ here `{guard}` means the name of your auth. For example, if you want to create a
1513
After you run this command you will get steps in which files has been added/changed.
1614
![For Make](https://user-images.githubusercontent.com/41295276/44602450-4a4e2580-a7fd-11e8-858b-cac65c496908.png)
1715

16+
## Email Verified
17+
18+
This is fully compatible with laravel `MustVerifyEmail` trait, so that you can make user to must verify email. [click here](https://laravel.com/docs/5.8/verification) more details.
19+
20+
If you need to have some route behind verified middleware, then you can use `{guard}.verified`
21+
for example, if you have created a student guard then to protect student home page with email verified route you can add middleware like this inside routes/student.php file
22+
23+
```php{2}
24+
...
25+
Route::get('/', 'HomeController@index')->name('student.dashboard')->middleware('student.verified');
26+
...
27+
```
28+
1829
## Rollback
1930

2031
**You can rollback this auth also if you want.**

0 commit comments

Comments
 (0)