Iman
5f9dbb41b5
[9.x] Use php 8 null safe operator ( #5670 )
...
This PR leverages php 8 "null safe operator" instead of thrr `optional()` helper
2021-08-17 08:09:03 -05:00
Taylor Otwell
226d1bfc3c
[8.x] Sanctum ( #5663 )
...
* initial sanctum poc
* add files
* remove token
2021-08-11 13:44:34 -05:00
Dries Vints
b6f4ee7661
Use new TrustProxies middleware ( #5662 )
2021-08-10 08:41:29 -05:00
Rodrigo Pedra Brum
03be0afb44
Don't trim current_password
( #5546 )
...
Inspired by https://github.com/laravel/framework/pull/36415
As JetStream/Fortify uses a `current_password` field when allowing a user to change their password, and as JetStream is one of the starter kits listed on the docs, this PR adds `current_password` in the `$except` option of the `TrimStrings` middleware.
2021-03-01 07:38:37 -06:00
Hugo Clarke-Wing
f0de9fd996
Don't flash 'current_password' input ( #5541 )
...
* Don't flash `current_password` input
With starter packs like Jetstream, the `current_password` input is used.
I believe that adding `current_password` to the `$dontFlash` list by default would help to ensure new projects follow security best practices from the get-go.
* Update Handler.php
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2021-02-19 09:09:51 -06:00
Dries Vints
f97e551071
Update TrustProxies.php ( #5514 )
2021-01-12 11:18:35 -06:00
Taylor Otwell
b7cde8b495
comment trust hosts
2020-12-10 07:14:14 -06:00
Daniel Coulbourne
f6f772ba54
Uncomment TrustHosts middleware to enable it by default. ( #5477 )
2020-11-26 08:38:56 -06:00
Taylor Otwell
4931af1400
add stub handler
2020-11-14 09:17:41 -06:00
Taylor Otwell
bec982b0a3
update by
2020-10-22 16:01:59 -05:00
Viktor Szépe
453d7286f3
Revert per user API rate limit
...
It was changed from per user to per application in ced3e50bca279f5a499a6d513fcdfd2a020c28ce
2020-10-22 22:41:03 +02: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
Taylor Otwell
a6ca577839
add comment
2020-09-22 14:17:27 -05:00
Ricardo Gobbo de Souza
d3353c9e9a
Fix route when uncomment $namespace ( #5424 )
2020-09-22 09:23:40 -05:00
Alex Mayer
f1a51f7c62
[8.x] Update User Model to Match Jetstream Formatting ( #5422 )
...
* Update User Model to Match Jetstream Formatting
* Update User.php
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2020-09-20 20:35:48 -05:00
Taylor Otwell
69d0c504e3
add commented code
2020-09-20 11:39:57 -05:00
Wojciech Gabryś
c62a7c13bf
Update model path in AuthServiceProvider's policies.
...
Due to the change of default model location in Laravel 8.x from /App to /App/Models, the initial policy comment shoud also reflect this change.
2020-09-15 09:53:40 +02:00
Taylor Otwell
292a5b26a9
swap route order
2020-09-11 08:29:38 -05:00
Taylor Otwell
b33852ecac
remove property
2020-09-10 14:28:44 -05:00
Taylor Otwell
9cbc3819f7
add property to route service provider
2020-09-09 21:00:21 -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
cfd428bfcb
add dontReport property
2020-08-28 10:06:23 -05:00
Taylor Otwell
ced3e50bca
use new rate limiting
2020-08-27 13:36:32 -05:00
Taylor Otwell
710d472d76
models directory
2020-08-20 15:31:07 -05:00
Taylor Otwell
e471dd1cf0
rename class
2020-07-14 15:57:11 -05:00
Taylor Otwell
a14a1208ad
remove alias that isnt needed
2020-07-14 15:48:22 -05:00
Taylor Otwell
e265156bc6
simplify line
2020-07-14 15:12:37 -05:00
Taylor Otwell
a9623d3596
update wording
2020-07-14 14:10:07 -05:00
Taylor Otwell
ce3e006d61
remove unneeded property. can use ignore method
2020-07-14 14:07:25 -05:00
Taylor Otwell
a9abc85301
consolidate to a single method
2020-07-14 14:00:47 -05:00
Taylor Otwell
880cc1d3d8
simplify default exception handler
2020-07-14 10:10:03 -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
58a98efb86
tweak route provider default settings
2020-06-24 12:47:56 -05:00
Taylor Otwell
e0c4fd8b8a
one line
2020-06-24 11:36:13 -05:00
Dries Vints
a429eab2d4
Merge branch 'master' into develop
2020-06-16 14:56:56 +02:00
Taylor Otwell
5639581ea5
add basic trust host middleware
2020-05-18 16:50:22 -05:00
feek
7d62f500a7
chore: update typehint to be nullable ( #5296 )
...
By default, this property is null. Therefore, it should be marked as nullable
2020-05-04 08:31:39 -05:00
Taylor Otwell
b9af2b2294
Use new factories
...
Use the new factories provided in 8.x
2020-04-21 10:12:39 -05:00
Taylor Otwell
d53c56e4e0
remove unneeded parent boot calls
2020-04-14 16:14:22 -05:00
André Ricard
c7a0002432
Fix the code indent of object operators ( #5258 )
...
This commit fixes the code indent of object operators, as following the framework code standards -> 2.4. Indenting
2020-03-11 07:37:46 -05:00
Taylor Otwell
0bec06cd45
formatting
2019-12-27 08:56:53 -06:00
Barry vd. Heuvel
c222f6d04f
CS
2019-12-26 19:54:10 +01:00
Barry vd. Heuvel
860ec9f2a4
Use config instead of middleware property
2019-12-26 19:46:41 +01:00
Barry vd. Heuvel
bee0e8c94c
Add HandleCors middleware
2019-12-24 22:28:20 +01:00
Graham Campbell
db940594ad
Merge branch 'master' into develop
2019-12-24 17:45:25 +00:00
Graham Campbell
846f7a193a
Correct exception handler doc ( #5187 )
2019-12-24 17:35:58 +00:00
Taylor Otwell
12c28822f4
one liner
2019-12-20 14:14:01 -06:00
Taylor Otwell
3ee0065bcd
remove unnecessary variable
2019-12-20 14:10:38 -06:00
Taylor Otwell
b5bb91fea7
Remove controllers that are generated by laravel/ui package.
...
These controllers will be installed and generated by the laravel/ui (2.0) package in Laravel 7.x.
2019-12-20 11:48:38 -06:00