Commit Graph

27 Commits

Author SHA1 Message Date
Nuno Maduro
55af5469c3 [10.x] Uses PHP Native Type Declarations 🐘 (#6010)
* Adds basic typing around method's arguments and return types

* Adds missing `closure` type

* Adds typing on tests

* Fixes `RedirectIfAuthenticated`

* Fixes `Authenticate`

* Improves `RedirectIfAuthenticated` types

* Fixes user factory `unverified` return type
2023-01-03 10:35:24 +01:00
Nuno Maduro
8a62ca2633 Improves generic types on the skeleton (#5740) 2021-12-03 09:04:57 -06:00
Andrew Brown
38bc9119eb type hint the middleware Request (#5438)
stemming from https://github.com/laravel/framework/pull/34224
2020-10-02 08:31:13 -05:00
Can Vural
94e7945517 Fix docblock for variadic parameter (#5401) 2020-09-09 07:20:20 -05:00
Mark van den Broek
7895cd3a5f Update docblock (#5392) 2020-09-04 21:07:55 -05:00
Taylor Otwell
e265156bc6 simplify line 2020-07-14 15:12:37 -05:00
Muah
adb7eacf9e [8.x] Multiple guards for RedirectIfAuthenticated (#5329)
* Update RedirectIfAuthenticated.php

allow the middleware to have the same behavior as https://laravel.com/api/5.8/Illuminate/Auth/Middleware/Authenticate.html#method_authenticate

so now the guest middleware have the same footprint as auth ex.`guest:web,admin` instead of creating multiple lines to support different guards.

* Update RedirectIfAuthenticated.php
2020-06-29 10:21:36 -05:00
Taylor Otwell
e0c4fd8b8a one line 2020-06-24 11:36:13 -05:00
Taylor Otwell
972f3cd283 DRY up path (#5173) 2019-12-10 08:59:27 -06:00
Taylor Otwell
44d274174f Revert "[5.8] Modify RedirectIfAuthenticated middleware to accept multiple guards" 2019-02-24 18:51:07 -06:00
Taylor Otwell
247f7f9619 Update RedirectIfAuthenticated.php 2019-01-16 09:05:51 -06:00
Te7a-Houdini
bb79dda1ff Modify RedirectIfAuthenticated middleware to accept multiple guards 2019-01-14 17:47:22 +02:00
Taylor Otwell
24766d479d redirect to home if authed 2016-07-23 15:39:33 -05:00
Taylor Otwell
2ea2ae0f3f allow guard to be specified on middleaware 2015-12-05 21:56:17 -06:00
Taylor Otwell
a690bb7552 fix conflicts 2015-12-03 12:26:26 -06:00
Taylor Otwell
8414d45cdc update middleware and config 2015-12-03 12:25:38 -06:00
Martin Bean
223191a9b0 Change redirect when authenticated
The route /home doesn’t exist in a default Laravel application, whereas / does.
2015-11-19 23:01:29 +00:00
Graham Campbell
bf3785d0bc Additional cs fixes
Signed-off-by: Graham Campbell <graham@cachethq.io>
2015-06-01 15:46:45 +01:00
Taylor Otwell
8909e75552 Some spacing. 2015-03-02 15:31:27 -06:00
Taylor Otwell
c9c0380b34 Just use helper function in middleware. 2015-03-01 21:35:37 -06:00
Taylor Otwell
4c78958b5b Tweak a few things. 2015-02-22 22:37:16 -06:00
Taylor Otwell
cc2139ac91 Tweaking a few things. 2015-02-22 21:56:03 -06:00
Taylor Otwell
f424b87a63 PSR-2 for app. 2015-02-22 20:47:03 -06:00
Taylor Otwell
caa166f5d6 Remove middleware interface. 2015-01-05 13:16:21 -06:00
Taylor Otwell
634c96d8d9 Rename dashboard to home. 2014-11-24 19:33:07 -06:00
Taylor Otwell
f8aeffc76a Tweak welcome view. 2014-11-24 11:47:49 -06:00
Taylor Otwell
ca2f02284c Rename middleware to more "action" words. 2014-11-11 12:51:55 -06:00