develop
Last change
on this file since 6f7d3df was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added user authentication, create & forgot password methods and blades
|
-
Property mode
set to
100644
|
File size:
478 bytes
|
Rev | Line | |
---|
[2fc88ec] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Http\Middleware;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
---|
| 6 |
|
---|
| 7 | class Authenticate extends Middleware
|
---|
| 8 | {
|
---|
| 9 | /**
|
---|
| 10 | * Get the path the user should be redirected to when they are not authenticated.
|
---|
| 11 | *
|
---|
| 12 | * @param \Illuminate\Http\Request $request
|
---|
| 13 | * @return string|null
|
---|
| 14 | */
|
---|
| 15 | protected function redirectTo($request)
|
---|
| 16 | {
|
---|
| 17 | if (! $request->expectsJson()) {
|
---|
[7304c7f] | 18 | return route('auth.loginShow');
|
---|
[2fc88ec] | 19 | }
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.