Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合併 laravel/docs 內容 #478

Merged
merged 200 commits into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
4cdf7ae
wip
taylorotwell May 16, 2022
5b6513a
Update validation.md (#7940)
driesvints May 16, 2022
8c1cb2c
Add `assertJsonMissingPath()` to HTTP Tests (#7936)
danilopolani May 16, 2022
f170a2c
[9.x] Document the usage of expressions and raw statements within the…
eduance May 16, 2022
38177b4
[9.x] Document hasExpiredTrial (#7942)
driesvints May 17, 2022
8cfab37
[9.x] Add orWhereRelation and orWhereMorphRelation (#7945)
mehdirajabi59 May 18, 2022
8a8d3b0
wip
taylorotwell May 18, 2022
56f3abf
wip
taylorotwell May 18, 2022
2b3daca
Adds documentation for Arr::prependKeysWith method
denjaland May 19, 2022
9a129dc
Update releases.md (#7948)
driesvints May 20, 2022
7ef304f
Updating custom throttle response. (#7950)
devNoiseConsulting May 23, 2022
653985a
replace first class callables with comments (#7951)
timacdonald May 24, 2022
74c9577
[SCOUT] Adding Declaring Model Engine to Scout docs (#7952)
JustSteveKing May 24, 2022
a67705a
wip
taylorotwell May 24, 2022
7ad23cc
wip
taylorotwell May 24, 2022
3b9566c
formatting
taylorotwell May 24, 2022
0b6c16d
Merge branch 'denjaland/9.x' into 9.x
taylorotwell May 24, 2022
7fbbf87
Update eloquent-mutators.md (#7953)
RahulDey12 May 25, 2022
00562e4
fix sail binary references (#7954)
timacdonald May 28, 2022
477ab41
[9.x] Fix documentation for digits rule (#7957)
driesvints May 30, 2022
006f7b8
Adds documentation for Arr::map()
ecrmnn May 30, 2022
4ec51e9
Added documentation for the "--only-vendor" option for the "route:lis…
ash-jc-allen May 31, 2022
32cd2f6
[9.x] Adds documentation for `Str::isJson()` (#7960)
ecrmnn May 31, 2022
6194e3d
formatting
taylorotwell May 31, 2022
ff02ab9
fix conflicts
taylorotwell May 31, 2022
4ce9519
add normal method
taylorotwell May 31, 2022
80c5f1b
[9.x] Adds documentation for `Arr::join()` (#7959)
ecrmnn May 31, 2022
c658a56
wip
taylorotwell May 31, 2022
016d122
[9.x] Add validation response example (#7966)
timacdonald Jun 3, 2022
32f3bfe
[9.x] add `classBasename` method for Fluent strings (#7970)
alexrififi Jun 6, 2022
b2eb70e
Fixed typo on Authorization -> Inline Authorization (#7972)
matiaslauriti Jun 6, 2022
f3d1a20
Update collections.md (#7974)
driesvints Jun 7, 2022
ec890ba
update example
taylorotwell Jun 7, 2022
c5fc984
Added coverage to SAIL_XDEBUG_MODE (#7978)
lsfiege Jun 10, 2022
087dae3
Add other helpful test methods of the mailable (#7983)
nshiro Jun 15, 2022
378b3fa
[9.x] Fix typo (#7982)
bvtterfly Jun 15, 2022
3585226
document append method on Eloquent Collection (#7987)
mitchierichie Jun 15, 2022
6582c3d
Suggest public properties for Bus::assertDispatched testing (#7989)
stevebauman Jun 15, 2022
db45785
Display `Collection::slide()` method alphabetically (#7992)
Jun 17, 2022
d5989c4
document fakeExcept
taylorotwell Jun 18, 2022
6038060
add note on tags
taylorotwell Jun 18, 2022
f9cac1f
[9.x] Noted about explicit base-url generation for MinIO in Sail (#7988)
Random72IsTaken Jun 20, 2022
882d331
document whenQueryingForLongerThan
taylorotwell Jun 21, 2022
f9cdd17
document nested eager loading
taylorotwell Jun 21, 2022
f1d820b
document host
taylorotwell Jun 21, 2022
43a0cda
attachable objects
taylorotwell Jun 21, 2022
986bee2
add tip for attachable objects
taylorotwell Jun 21, 2022
577128e
document invokable rules
taylorotwell Jun 21, 2022
f621bcd
Fix attachable object example missing contract implementation (#7999)
tonysm Jun 21, 2022
fd66901
[9.x] Mention the default timeout of a worker (#7998)
denniseilander Jun 22, 2022
cdb5660
[9.x] Document global `fake()` helper (#8002)
timacdonald Jun 23, 2022
0a09408
[9.x] Add parameters to the closure for whenQueryingForLongerThan (#8…
nshiro Jun 23, 2022
f1c74bf
Document auth and verified middleware usage (#8005)
driesvints Jun 23, 2022
7a1e8e7
Fix example in 'Using An Existing Client Instance' (#8007)
PindaPixel Jun 27, 2022
464b08a
[9.x] Vite (#7984)
jessarcher Jun 28, 2022
fff551b
Update vite.md (#8014)
damiantw Jun 29, 2022
c628a0a
Update collections.md (#8012)
danyellnoe Jun 29, 2022
af4e0a8
add leading slash (#8013)
Magnesium38 Jun 29, 2022
fa71412
Clarify octane max-requests defaults (#8010)
tontonsb Jun 29, 2022
b10a7d8
Adding link to Rails website in Frontend docs (#8018)
guillaumebriday Jun 30, 2022
f9aa45f
Fix directory paths in Blade docs (#8015)
jessarcher Jun 30, 2022
f88ed3a
add missing comma (#8019)
jrmajor Jul 1, 2022
1a4dd8e
Remove extra spaces when merging two strings (#8028)
AzadGh95 Jul 6, 2022
d9209fd
Replace locale for name (#8032)
Edsardio Jul 7, 2022
a047d83
Fix Rending to Rendering. Update misspelling. (#8034)
CraftLogan Jul 11, 2022
b69c27a
[9.x] Document Vite refresh option (#8022)
timacdonald Jul 11, 2022
5d195fc
Update SSR directory (#8030)
jessarcher Jul 12, 2022
3c50577
[9.x] feature: `Str::inlineMarkdown()`
danharrin Jul 13, 2022
a73f76e
formatting
taylorotwell Jul 13, 2022
fb4b196
Fix vite-plugin-full-reload config example (#8042)
abordage Jul 14, 2022
0682ca0
[9.x] Authorization HTTP status customisation (#8041)
timacdonald Jul 14, 2022
fc796f6
wip
taylorotwell Jul 14, 2022
049814c
wip
taylorotwell Jul 14, 2022
da6aa73
Add `whenCounted` resource method docs
stevebauman Jul 14, 2022
6df16ab
Grammatical fixes
stevebauman Jul 14, 2022
d81734a
add doc about passing a closure to `random()` (#8045)
browner12 Jul 14, 2022
3e15990
Updates `attributes checking` section
mahmoudmohamedramadan Jul 16, 2022
91aa9a8
formatting
taylorotwell Jul 18, 2022
5baf928
Update --path Flag in the Route Listing Documentation (#8047)
zaghadon Jul 18, 2022
60dbcc5
Adds `@pushIf` directive with some formatting (#8051)
mahmoudmohamedramadan Jul 18, 2022
78dd871
-- little grammar fix (#8053)
kamasuPaul Jul 19, 2022
a33676b
[9.x] Adds `model:show` documentation (#8054)
nunomaduro Jul 19, 2022
8d8231e
[9.x] Adds Laravel Pint documentation (#8043)
nunomaduro Jul 19, 2022
f8e3827
vite 3 support (#8049)
timacdonald Jul 19, 2022
615fc77
[9.x] Document `about` command (#8055)
jbrooksuk Jul 19, 2022
62002c3
document request enum?
taylorotwell Jul 19, 2022
63b921c
formatting
taylorotwell Jul 19, 2022
8de851b
Merge branch 'stevebauman/9.x' into 9.x
taylorotwell Jul 19, 2022
74623cd
Fix Eloquent mutator docblock (#8056)
ahinkle Jul 19, 2022
e9cb74f
fix octane roadrunner port for server (#8057)
crazy252 Jul 20, 2022
4611b12
added installation tip for older applications
caneco Jul 20, 2022
5dcb6ba
[9.x] Http client middleware (#8050)
bretto36 Jul 20, 2022
4cde7a6
added hasAny method document (#8060)
moharami Jul 20, 2022
5b9fa0f
wip
taylorotwell Jul 20, 2022
24c06bd
Merge branch 'caneco/9.x' into 9.x
taylorotwell Jul 20, 2022
84c6efa
wip
taylorotwell Jul 20, 2022
7afa693
wip
taylorotwell Jul 20, 2022
0df79ae
containsOneItem method document (#8062)
moharami Jul 21, 2022
7397c92
wip
taylorotwell Jul 21, 2022
845f041
document attemptWhen
taylorotwell Jul 21, 2022
5274e32
Update sail.md to reflect initial setup for MinIO (#8067)
ceejayoz Jul 22, 2022
0f8711e
[9.x] Clarify actingAs behavior when setting a guard (#8065)
driesvints Jul 22, 2022
6a578a6
Explain how to bind Exception Handler after upgrade (#8066)
Lloople Jul 22, 2022
ba7b590
wip
taylorotwell Jul 22, 2022
b999794
Update Scout docs to clarify configuration of queue connection and na…
michaeldyrynda Jul 24, 2022
154058e
wip
taylorotwell Jul 25, 2022
f03219c
Fix Paddle link (#8072)
lukaszmtw Jul 25, 2022
810d59b
wip
taylorotwell Jul 25, 2022
9c96593
wip
taylorotwell Jul 25, 2022
9dafec1
document validating files
taylorotwell Jul 26, 2022
db8b2d6
docs: remove unused import from File validation (#8075)
owenvoke Jul 26, 2022
41d7f41
[9.x] Dry running migrations command (#8077)
takinur Jul 27, 2022
16e18d9
[9.x] add api config in auth (#8076)
abbasudo Jul 27, 2022
4422c8a
wip (#8079)
mahmoudmohamedramadan Jul 28, 2022
17e6fa3
[9.x]: add `throwUnless` doc to http client (#8078)
dammy001 Jul 28, 2022
a3f7689
Remove apostrophe (#8081)
crhayes Jul 29, 2022
638b372
Remove erroneous 'to' and clarify balancing behavior. (#8080)
georgebohnisch Jul 29, 2022
9e99d5d
Added `return` in `withMiddleware` examples (#8088)
fakeheal Aug 1, 2022
33b59d5
Add Node version message (#8087)
jeroenvanrensen Aug 1, 2022
43090fc
[9.x] Added docs for lineIf and attachMany (#8085)
shino47 Aug 1, 2022
2639875
[9.x] Document Script & Style Attributes with Vite (#8086)
jessarcher Aug 1, 2022
c8a1385
Made installation scripts order suitable for exec (#8089)
hameesakhan Aug 1, 2022
e49a672
add whereNot
taylorotwell Aug 2, 2022
a9caab1
[9.x] Improve wording for subscriptions with multiple products (#8091)
driesvints Aug 2, 2022
12c9343
Add documentation about many schedules using same job with onOneServe…
danilopinotti Aug 2, 2022
c3ee189
add arg
taylorotwell Aug 3, 2022
508559f
Fix Vite CSP middleware example (#8097)
jessarcher Aug 4, 2022
9e0d108
Adopt GitHub style of notes (#8092)
driesvints Aug 4, 2022
4a3dc71
added documentation for the laravel record method
Aug 5, 2022
7f328ec
added punctuation
Aug 5, 2022
b29c6bd
Updated the bugfix branch (#8101)
itsMaati Aug 5, 2022
e3f4f04
fix config option name for s3 (#8100)
avosalmon Aug 5, 2022
dabafb0
formatting
taylorotwell Aug 5, 2022
7e08ee4
Merge branch 'CharlesBilbo/9.x' into 9.x
taylorotwell Aug 5, 2022
907ca36
Improve shell alias docs (#8105)
jessarcher Aug 8, 2022
d8fbee0
[9.x] Document MinIO limitation with temporaryUrl (#8107)
driesvints Aug 8, 2022
6d8a96b
[9.x] Add docs for eloquent quietly methods (#8108)
imanghafoori1 Aug 8, 2022
96707ef
keyby callback has key param (#8113)
schulerj89 Aug 9, 2022
a06206f
Simplify sentence (#8112)
nikolaynikolaevn Aug 9, 2022
d401472
Mention pusher/pusher-php-server upgrade from ^4.0|^5.0 to ^5.0 in up…
AlbinoDrought Aug 9, 2022
bba5ee3
[9.x] Document combining global scopes with Scout (#8104)
driesvints Aug 9, 2022
5ed2c52
Added doc for validation rules `doesnt_end_with` and `doesnt_start_wi…
kichetof Aug 9, 2022
574147f
wip
taylorotwell Aug 9, 2022
4323428
Update database.md
driesvints Aug 11, 2022
55d60ee
promote lazy about command registration in boot function (#8116)
timacdonald Aug 11, 2022
c526fae
[9.x] Adds collection comparison operators list (#8121)
imanghafoori1 Aug 12, 2022
404711c
move Docker to "Included Software" (#8119)
browner12 Aug 12, 2022
c6512cf
Document faking a sub-set of jobs (#8117)
tobz-nz Aug 12, 2022
eb100b1
Collections implode function supports callback (#8123)
schulerj89 Aug 15, 2022
aae906b
[9.x] Document `withoutVite` method (#8122)
jessarcher Aug 15, 2022
f9cf314
[9.x] Document new `db` commands (#8114)
jbrooksuk Aug 15, 2022
c74b767
[9.x] Add `withWhereHas` documentation to Eloquent (#8115)
ashleyshenton Aug 15, 2022
1fb02fd
wip
taylorotwell Aug 16, 2022
9560242
[9.x] Update docs regarding `sail up` time (#8131)
jessarcher Aug 17, 2022
b6a26a9
[9.x] Including static assets in Vite builds (#8124)
timacdonald Aug 17, 2022
c434a16
[9.x] Separate Eloquent factory docs (#8118)
jessarcher Aug 17, 2022
26ec2d1
Add assertNotSoftDeleted method documentation (#8134)
asilvabe Aug 17, 2022
184f191
[9.x] Update GitHub Actions sample workflow for Dusk (#8137)
ash-jc-allen Aug 18, 2022
a90b05d
[9.x] to_route helper in routing (#8136)
medilies Aug 18, 2022
72ebaf8
[9.x] Cursorpagination: query expressions with parameters not support…
gdebrauwer Aug 18, 2022
7f20439
wip
taylorotwell Aug 21, 2022
f5aa53d
wip
taylorotwell Aug 21, 2022
75f6257
Fix typos (#8149)
krsriq Aug 22, 2022
1b452b9
[9.x] Clarify prohibited (#8150)
driesvints Aug 22, 2022
889ad55
[9.x] Add Vite Facade to Class Reference (#8147)
nshiro Aug 22, 2022
b1d58c8
specifying build path for vite directive (#8142)
megasteve19 Aug 22, 2022
aa63c23
[9.x] Fix component wording (#8152)
Ksoehren Aug 22, 2022
3798ba8
remove backed
taylorotwell Aug 23, 2022
bd0cb8e
feature: `max_length` and `min_length` validation docs (#8148)
danharrin Aug 23, 2022
7be8a1c
[9.x] Document advanced customisations (#8146)
timacdonald Aug 23, 2022
ac72628
Update passport.md (#8141)
driesvints Aug 23, 2022
2f2cc7e
Cashier v14 changes (#8156)
driesvints Aug 23, 2022
7635641
[9.x] Dusk v7 doc adjustments (#8140)
driesvints Aug 23, 2022
c386753
Update collections.md (#8157)
bert-w Aug 23, 2022
39f753e
Update queues.md - add explicit documentation of `sync` default queue…
agroebe Aug 23, 2022
67e5050
$isAssoc variable name is misleading in isList() helper documenation …
Aug 24, 2022
c367dbf
fix wording
taylorotwell Aug 24, 2022
21eb16f
clarify
taylorotwell Aug 24, 2022
9f45108
use function
taylorotwell Aug 24, 2022
db26452
fix sentence
taylorotwell Aug 24, 2022
bbfb9ac
wip
taylorotwell Aug 24, 2022
15ccaef
remove section
taylorotwell Aug 24, 2022
0ba43a4
change header
taylorotwell Aug 25, 2022
a0ceec9
wip
taylorotwell Aug 25, 2022
ddc4f7a
[9.x] Update implicit rules description to a new invokable way (#8160)
nshiro Aug 25, 2022
dd27ba4
Fix typo (#8162)
devnll Aug 25, 2022
899bbc2
Return installation using `laravel new` to docs (#8163)
osmianski Aug 26, 2022
5b28e3e
Update pagination.md
driesvints Aug 29, 2022
90976b4
fix sentence in fortify.md (#8168)
phyothiha Aug 29, 2022
646969b
Note that the range specified in the 'between' validation rule in inc…
FrontEndCoffee Aug 30, 2022
00f86a4
document on demand broadcast
taylorotwell Aug 30, 2022
effe1a1
amending one off to be one-off to achieve consistency of phrasing, to…
simonminton Aug 31, 2022
cd8f9c8
Update eloquent-mutators.md (#8177)
driesvints Sep 1, 2022
f22ecfb
Update requests.md (#8176)
driesvints Sep 1, 2022
3390383
Decimal cast update (#8179)
brandonferens Sep 1, 2022
3931756
[9.x] SQLite 3.38.0+ Supports whereJsonContains (#8181)
tm1000 Sep 2, 2022
82fda2b
Change to Xdebug v3.* configuration (#8182)
magdicom Sep 5, 2022
61711a6
[9.x] Clarify `etc` behavior on nested attributes (#8185)
driesvints Sep 5, 2022
1f7884b
HTML5 selected attribute (#8186)
Rattone Sep 5, 2022
a91fe97
Fixed the missing bracket in the Eloquent Relationships (#8189)
uru Sep 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions artisan.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ php artisan help migrate
If you are using [Laravel Sail](/docs/{{version}}/sail) as your local development environment, remember to use the `sail` command line to invoke Artisan commands. Sail will execute your Artisan commands within your application's Docker containers:

```shell
./sail artisan list
./vendor/bin/sail artisan list
```

<a name="tinker"></a>
Expand All @@ -60,7 +60,8 @@ All Laravel applications include Tinker by default. However, you may install Tin
composer require laravel/tinker
```

> {tip} Looking for a graphical UI for interacting with your Laravel application? Check out [Tinkerwell](https://tinkerwell.app)!
> **Note**
> Looking for a graphical UI for interacting with your Laravel application? Check out [Tinkerwell](https://tinkerwell.app)!

<a name="usage"></a>
#### Usage
Expand All @@ -77,7 +78,8 @@ You can publish Tinker's configuration file using the `vendor:publish` command:
php artisan vendor:publish --provider="Laravel\Tinker\TinkerServiceProvider"
```

> {note} The `dispatch` helper function and `dispatch` method on the `Dispatchable` class depends on garbage collection to place the job on the queue. Therefore, when using tinker, you should use `Bus::dispatch` or `Queue::push` to dispatch jobs.
> **Warning**
> The `dispatch` helper function and `dispatch` method on the `Dispatchable` class depends on garbage collection to place the job on the queue. Therefore, when using tinker, you should use `Bus::dispatch` or `Queue::push` to dispatch jobs.

<a name="command-allow-list"></a>
#### Command Allow List
Expand Down Expand Up @@ -154,7 +156,8 @@ Let's take a look at an example command. Note that we are able to request any de
}
}

> {tip} For greater code reuse, it is good practice to keep your console commands light and let them defer to application services to accomplish their tasks. In the example above, note that we inject a service class to do the "heavy lifting" of sending the e-mails.
> **Note**
> For greater code reuse, it is good practice to keep your console commands light and let them defer to application services to accomplish their tasks. In the example above, note that we inject a service class to do the "heavy lifting" of sending the e-mails.

<a name="closure-commands"></a>
### Closure Commands
Expand Down Expand Up @@ -285,10 +288,10 @@ If you would like to define arguments or options to expect multiple input values

'mail:send {user*}'

When calling this method, the `user` arguments may be passed in order to the command line. For example, the following command will set the value of `user` to an array with `foo` and `bar` as its values:
When calling this method, the `user` arguments may be passed in order to the command line. For example, the following command will set the value of `user` to an array with `1` and `2` as its values:

```shell
php artisan mail:send foo bar
php artisan mail:send 1 2
```

This `*` character can be combined with an optional argument definition to allow zero or more instances of an argument:
Expand All @@ -300,7 +303,7 @@ This `*` character can be combined with an optional argument definition to allow

When defining an option that expects multiple input values, each option value passed to the command should be prefixed with the option name:

'mail:send {user} {--id=*}'
'mail:send {--id=*}'

Such a command may be invoked by passing multiple `--id` arguments:

Expand Down Expand Up @@ -495,7 +498,8 @@ Sometimes, you may need more manual control over how a progress bar is advanced.

$bar->finish();

> {tip} For more advanced options, check out the [Symfony Progress Bar component documentation](https://symfony.com/doc/current/components/console/helpers/progressbar.html).
> **Note**
> For more advanced options, check out the [Symfony Progress Bar component documentation](https://symfony.com/doc/current/components/console/helpers/progressbar.html).

<a name="registering-commands"></a>
## Registering Commands
Expand Down
35 changes: 26 additions & 9 deletions authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ Providers define how users are retrieved from your persistent storage. Laravel s

Your application's authentication configuration file is located at `config/auth.php`. This file contains several well-documented options for tweaking the behavior of Laravel's authentication services.

> {tip} Guards and providers should not be confused with "roles" and "permissions". To learn more about authorizing user actions via permissions, please refer to the [authorization](/docs/{{version}}/authorization) documentation.
> **Note**
> Guards and providers should not be confused with "roles" and "permissions". To learn more about authorizing user actions via permissions, please refer to the [authorization](/docs/{{version}}/authorization) documentation.

<a name="starter-kits"></a>
### Starter Kits
Expand Down Expand Up @@ -79,7 +80,7 @@ _Laravel Breeze_ is a simple, minimal implementation of all of Laravel's authent

_Laravel Fortify_ is a headless authentication backend for Laravel that implements many of the features found in this documentation, including cookie-based authentication as well as other features such as two-factor authentication and email verification. Fortify provides the authentication backend for Laravel Jetstream or may be used independently in combination with [Laravel Sanctum](/docs/{{version}}/sanctum) to provide authentication for an SPA that needs to authenticate with Laravel.

_[Laravel Jetstream](https://jetstream.laravel.com)_ is a robust application starter kit that consumes and exposes Laravel Fortify's authentication services with a beautiful, modern UI powered by [Tailwind CSS](https://tailwindcss.com), [Livewire](https://laravel-livewire.com), and / or [Inertia.js](https://inertiajs.com). Laravel Jetstream includes optional support for two-factor authentication, team support, browser session management, profile management, and built-in integration with [Laravel Sanctum](/docs/{{version}}/sanctum) to offer API token authentication. Laravel's API authentication offerings are discussed below.
_[Laravel Jetstream](https://jetstream.laravel.com)_ is a robust application starter kit that consumes and exposes Laravel Fortify's authentication services with a beautiful, modern UI powered by [Tailwind CSS](https://tailwindcss.com), [Livewire](https://laravel-livewire.com), and / or [Inertia](https://inertiajs.com). Laravel Jetstream includes optional support for two-factor authentication, team support, browser session management, profile management, and built-in integration with [Laravel Sanctum](/docs/{{version}}/sanctum) to offer API token authentication. Laravel's API authentication offerings are discussed below.

<a name="laravels-api-authentication-services"></a>
#### Laravel's API Authentication Services
Expand Down Expand Up @@ -109,12 +110,13 @@ If you are building a single-page application (SPA) that will be powered by a La

Passport may be chosen when your application absolutely needs all of the features provided by the OAuth2 specification.

And, if you would like to get started quickly, we are pleased to recommend [Laravel Jetstream](https://jetstream.laravel.com) as a quick way to start a new Laravel application that already uses our preferred authentication stack of Laravel's built-in authentication services and Laravel Sanctum.
And, if you would like to get started quickly, we are pleased to recommend [Laravel Breeze](/docs/{{version}}/starter-kits#laravel-breeze) as a quick way to start a new Laravel application that already uses our preferred authentication stack of Laravel's built-in authentication services and Laravel Sanctum.

<a name="authentication-quickstart"></a>
## Authentication Quickstart

> {note} This portion of the documentation discusses authenticating users via the [Laravel application starter kits](/docs/{{version}}/starter-kits), which includes UI scaffolding to help you get started quickly. If you would like to integrate with Laravel's authentication systems directly, check out the documentation on [manually authenticating users](#authenticating-users).
> **Warning**
> This portion of the documentation discusses authenticating users via the [Laravel application starter kits](/docs/{{version}}/starter-kits), which includes UI scaffolding to help you get started quickly. If you would like to integrate with Laravel's authentication systems directly, check out the documentation on [manually authenticating users](#authenticating-users).

<a name="install-a-starter-kit"></a>
### Install A Starter Kit
Expand All @@ -123,7 +125,7 @@ First, you should [install a Laravel application starter kit](/docs/{{version}}/

Laravel Breeze is a minimal, simple implementation of all of Laravel's authentication features, including login, registration, password reset, email verification, and password confirmation. Laravel Breeze's view layer is made up of simple [Blade templates](/docs/{{version}}/blade) styled with [Tailwind CSS](https://tailwindcss.com). Breeze also offers an [Inertia](https://inertiajs.com) based scaffolding option using Vue or React.

[Laravel Jetstream](https://jetstream.laravel.com) is a more robust application starter kit that includes support for scaffolding your application with [Livewire](https://laravel-livewire.com) or [Inertia.js and Vue](https://inertiajs.com). In addition, Jetstream features optional support for two-factor authentication, teams, profile management, browser session management, API support via [Laravel Sanctum](/docs/{{version}}/sanctum), account deletion, and more.
[Laravel Jetstream](https://jetstream.laravel.com) is a more robust application starter kit that includes support for scaffolding your application with [Livewire](https://laravel-livewire.com) or [Inertia and Vue](https://inertiajs.com). In addition, Jetstream features optional support for two-factor authentication, teams, profile management, browser session management, API support via [Laravel Sanctum](/docs/{{version}}/sanctum), account deletion, and more.

<a name="retrieving-the-authenticated-user"></a>
### Retrieving The Authenticated User
Expand Down Expand Up @@ -171,7 +173,8 @@ To determine if the user making the incoming HTTP request is authenticated, you
// The user is logged in...
}

> {tip} Even though it is possible to determine if a user is authenticated using the `check` method, you will typically use a middleware to verify that the user is authenticated before allowing the user access to certain routes / controllers. To learn more about this, check out the documentation on [protecting routes](/docs/{{version}}/authentication#protecting-routes).
> **Note**
> Even though it is possible to determine if a user is authenticated using the `check` method, you will typically use a middleware to verify that the user is authenticated before allowing the user access to certain routes / controllers. To learn more about this, check out the documentation on [protecting routes](/docs/{{version}}/authentication#protecting-routes).

<a name="protecting-routes"></a>
### Protecting Routes
Expand Down Expand Up @@ -212,7 +215,8 @@ When attaching the `auth` middleware to a route, you may also specify which "gua

If you are using the Laravel Breeze or Laravel Jetstream [starter kits](/docs/{{version}}/starter-kits), rate limiting will automatically be applied to login attempts. By default, the user will not be able to login for one minute if they fail to provide the correct credentials after several attempts. The throttling is unique to the user's username / email address and their IP address.

> {tip} If you would like to rate limit other routes in your application, check out the [rate limiting documentation](/docs/{{version}}/routing#rate-limiting).
> **Note**
> If you would like to rate limit other routes in your application, check out the [rate limiting documentation](/docs/{{version}}/routing#rate-limiting).

<a name="authenticating-users"></a>
## Manually Authenticating Users
Expand Down Expand Up @@ -272,7 +276,19 @@ If you wish, you may also add extra query conditions to the authentication query
// Authentication was successful...
}

> {note} In these examples, `email` is not a required option, it is merely used as an example. You should use whatever column name corresponds to a "username" in your database table.
> **Warning**
> In these examples, `email` is not a required option, it is merely used as an example. You should use whatever column name corresponds to a "username" in your database table.

The `attemptWhen` method, which receives a closure as its second argument, may be used to perform more extensive inspection of the potential user before actually authenticating the user. The closure receives the potential user and should return `true` or `false` to indicate if the user may be authenticated:

if (Auth::attemptWhen([
'email' => $email,
'password' => $password,
], function ($user) {
return $user->isNotBanned();
})) {
// Authentication was successful...
}

<a name="accessing-specific-guard-instances"></a>
#### Accessing Specific Guard Instances
Expand Down Expand Up @@ -453,7 +469,8 @@ When the `logoutOtherDevices` method is invoked, the user's other sessions will

While building your application, you may occasionally have actions that should require the user to confirm their password before the action is performed or before the user is redirected to a sensitive area of the application. Laravel includes built-in middleware to make this process a breeze. Implementing this feature will require you to define two routes: one route to display a view asking the user to confirm their password and another route to confirm that the password is valid and redirect the user to their intended destination.

> {tip} The following documentation discusses how to integrate with Laravel's password confirmation features directly; however, if you would like to get started more quickly, the [Laravel application starter kits](/docs/{{version}}/starter-kits) include support for this feature!
> **Note**
> The following documentation discusses how to integrate with Laravel's password confirmation features directly; however, if you would like to get started more quickly, the [Laravel application starter kits](/docs/{{version}}/starter-kits) include support for this feature!

<a name="password-confirmation-configuration"></a>
### Configuration
Expand Down
Loading