Skip to content

Commit 87c1dc3

Browse files
authored
Update markdown tables (#9778)
* Update tables * Fix quotes * Update `<x-mail::table>` examples * Add overflow-auto div to tables * Update requests.md
1 parent 87463da commit 87c1dc3

17 files changed

+487
-412
lines changed

authentication.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -741,17 +741,17 @@ Once the configuration file has been published, you may set the `rehash_on_login
741741

742742
Laravel dispatches a variety of [events](/docs/{{version}}/events) during the authentication process. You may [define listeners](/docs/{{version}}/events) for any of the following events:
743743

744-
Event Name |
745-
------------- |
746-
`Illuminate\Auth\Events\Registered` |
747-
`Illuminate\Auth\Events\Attempting` |
748-
`Illuminate\Auth\Events\Authenticated` |
749-
`Illuminate\Auth\Events\Login` |
750-
`Illuminate\Auth\Events\Failed` |
751-
`Illuminate\Auth\Events\Validated` |
752-
`Illuminate\Auth\Events\Verified` |
753-
`Illuminate\Auth\Events\Logout` |
754-
`Illuminate\Auth\Events\CurrentDeviceLogout` |
755-
`Illuminate\Auth\Events\OtherDeviceLogout` |
756-
`Illuminate\Auth\Events\Lockout` |
757-
`Illuminate\Auth\Events\PasswordReset` |
744+
| Event Name |
745+
| --- |
746+
| `Illuminate\Auth\Events\Registered` |
747+
| `Illuminate\Auth\Events\Attempting` |
748+
| `Illuminate\Auth\Events\Authenticated` |
749+
| `Illuminate\Auth\Events\Login` |
750+
| `Illuminate\Auth\Events\Failed` |
751+
| `Illuminate\Auth\Events\Validated` |
752+
| `Illuminate\Auth\Events\Verified` |
753+
| `Illuminate\Auth\Events\Logout` |
754+
| `Illuminate\Auth\Events\CurrentDeviceLogout` |
755+
| `Illuminate\Auth\Events\OtherDeviceLogout` |
756+
| `Illuminate\Auth\Events\Lockout` |
757+
| `Illuminate\Auth\Events\PasswordReset` |

blade.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,10 @@ If you are in a nested loop, you may access the parent loop's `$loop` variable v
423423

424424
The `$loop` variable also contains a variety of other useful properties:
425425

426+
<div class="overflow-auto">
427+
426428
| Property | Description |
427-
|--------------------|--------------------------------------------------------|
429+
| ------------------ | ------------------------------------------------------ |
428430
| `$loop->index` | The index of the current loop iteration (starts at 0). |
429431
| `$loop->iteration` | The current loop iteration (starts at 1). |
430432
| `$loop->remaining` | The iterations remaining in the loop. |
@@ -436,6 +438,8 @@ The `$loop` variable also contains a variety of other useful properties:
436438
| `$loop->depth` | The nesting level of the current loop. |
437439
| `$loop->parent` | When in a nested loop, the parent's loop variable. |
438440

441+
</div>
442+
439443
<a name="conditional-classes"></a>
440444
### Conditional Classes & Styles
441445

cache.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,12 @@ Once your extension is registered, update the `CACHE_STORE` environment variable
440440

441441
To execute code on every cache operation, you may listen for various [events](/docs/{{version}}/events) dispatched by the cache:
442442

443-
Event Name |
444-
------------- |
445-
`Illuminate\Cache\Events\CacheHit` |
446-
`Illuminate\Cache\Events\CacheMissed` |
447-
`Illuminate\Cache\Events\KeyForgotten` |
448-
`Illuminate\Cache\Events\KeyWritten` |
443+
| Event Name |
444+
| --- |
445+
| `Illuminate\Cache\Events\CacheHit` |
446+
| `Illuminate\Cache\Events\CacheMissed` |
447+
| `Illuminate\Cache\Events\KeyForgotten` |
448+
| `Illuminate\Cache\Events\KeyWritten` |
449449

450450
To increase performance, you may disable cache events by setting the `events` configuration option to `false` for a given cache store in your application's `config/cache.php` configuration file:
451451

configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Before loading your application's environment variables, Laravel determines if a
7272
All variables in your `.env` files are typically parsed as strings, so some reserved values have been created to allow you to return a wider range of types from the `env()` function:
7373

7474
| `.env` Value | `env()` Value |
75-
|--------------|---------------|
75+
| ------------ | ------------- |
7676
| true | (bool) true |
7777
| (true) | (bool) true |
7878
| false | (bool) false |

contracts.md

Lines changed: 84 additions & 80 deletions
Large diffs are not rendered by default.

controllers.md

Lines changed: 49 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,19 @@ You may even register many resource controllers at once by passing an array to t
181181
<a name="actions-handled-by-resource-controllers"></a>
182182
#### Actions Handled by Resource Controllers
183183

184-
Verb | URI | Action | Route Name
185-
----------|------------------------|--------------|---------------------
186-
GET | `/photos` | index | photos.index
187-
GET | `/photos/create` | create | photos.create
188-
POST | `/photos` | store | photos.store
189-
GET | `/photos/{photo}` | show | photos.show
190-
GET | `/photos/{photo}/edit` | edit | photos.edit
191-
PUT/PATCH | `/photos/{photo}` | update | photos.update
192-
DELETE | `/photos/{photo}` | destroy | photos.destroy
184+
<div class="overflow-auto">
185+
186+
| Verb | URI | Action | Route Name |
187+
| --------- | ---------------------- | ------- | -------------- |
188+
| GET | `/photos` | index | photos.index |
189+
| GET | `/photos/create` | create | photos.create |
190+
| POST | `/photos` | store | photos.store |
191+
| GET | `/photos/{photo}` | show | photos.show |
192+
| GET | `/photos/{photo}/edit` | edit | photos.edit |
193+
| PUT/PATCH | `/photos/{photo}` | update | photos.update |
194+
| DELETE | `/photos/{photo}` | destroy | photos.destroy |
195+
196+
</div>
193197

194198
<a name="customizing-missing-model-behavior"></a>
195199
#### Customizing Missing Model Behavior
@@ -305,15 +309,19 @@ Often, it is not entirely necessary to have both the parent and the child IDs wi
305309

306310
This route definition will define the following routes:
307311

308-
Verb | URI | Action | Route Name
309-
----------|-----------------------------------|--------------|---------------------
310-
GET | `/photos/{photo}/comments` | index | photos.comments.index
311-
GET | `/photos/{photo}/comments/create` | create | photos.comments.create
312-
POST | `/photos/{photo}/comments` | store | photos.comments.store
313-
GET | `/comments/{comment}` | show | comments.show
314-
GET | `/comments/{comment}/edit` | edit | comments.edit
315-
PUT/PATCH | `/comments/{comment}` | update | comments.update
316-
DELETE | `/comments/{comment}` | destroy | comments.destroy
312+
<div class="overflow-auto">
313+
314+
| Verb | URI | Action | Route Name |
315+
| --------- | --------------------------------- | ------- | ---------------------- |
316+
| GET | `/photos/{photo}/comments` | index | photos.comments.index |
317+
| GET | `/photos/{photo}/comments/create` | create | photos.comments.create |
318+
| POST | `/photos/{photo}/comments` | store | photos.comments.store |
319+
| GET | `/comments/{comment}` | show | comments.show |
320+
| GET | `/comments/{comment}/edit` | edit | comments.edit |
321+
| PUT/PATCH | `/comments/{comment}` | update | comments.update |
322+
| DELETE | `/comments/{comment}` | destroy | comments.destroy |
323+
324+
</div>
317325

318326
<a name="restful-naming-resource-routes"></a>
319327
### Naming Resource Routes
@@ -407,11 +415,15 @@ Route::singleton('profile', ProfileController::class);
407415

408416
The singleton resource definition above will register the following routes. As you can see, "creation" routes are not registered for singleton resources, and the registered routes do not accept an identifier since only one instance of the resource may exist:
409417

410-
Verb | URI | Action | Route Name
411-
----------|-----------------------------------|--------------|---------------------
412-
GET | `/profile` | show | profile.show
413-
GET | `/profile/edit` | edit | profile.edit
414-
PUT/PATCH | `/profile` | update | profile.update
418+
<div class="overflow-auto">
419+
420+
| Verb | URI | Action | Route Name |
421+
| --------- | --------------- | ------ | -------------- |
422+
| GET | `/profile` | show | profile.show |
423+
| GET | `/profile/edit` | edit | profile.edit |
424+
| PUT/PATCH | `/profile` | update | profile.update |
425+
426+
</div>
415427

416428
Singleton resources may also be nested within a standard resource:
417429

@@ -421,11 +433,15 @@ Route::singleton('photos.thumbnail', ThumbnailController::class);
421433

422434
In this example, the `photos` resource would receive all of the [standard resource routes](#actions-handled-by-resource-controller); however, the `thumbnail` resource would be a singleton resource with the following routes:
423435

424-
| Verb | URI | Action | Route Name |
425-
|-----------|----------------------------------|---------|--------------------------|
426-
| GET | `/photos/{photo}/thumbnail` | show | photos.thumbnail.show |
427-
| GET | `/photos/{photo}/thumbnail/edit` | edit | photos.thumbnail.edit |
428-
| PUT/PATCH | `/photos/{photo}/thumbnail` | update | photos.thumbnail.update |
436+
<div class="overflow-auto">
437+
438+
| Verb | URI | Action | Route Name |
439+
| --------- | -------------------------------- | ------ | ----------------------- |
440+
| GET | `/photos/{photo}/thumbnail` | show | photos.thumbnail.show |
441+
| GET | `/photos/{photo}/thumbnail/edit` | edit | photos.thumbnail.edit |
442+
| PUT/PATCH | `/photos/{photo}/thumbnail` | update | photos.thumbnail.update |
443+
444+
</div>
429445

430446
<a name="creatable-singleton-resources"></a>
431447
#### Creatable Singleton Resources
@@ -438,15 +454,19 @@ Route::singleton('photos.thumbnail', ThumbnailController::class)->creatable();
438454

439455
In this example, the following routes will be registered. As you can see, a `DELETE` route will also be registered for creatable singleton resources:
440456

457+
<div class="overflow-auto">
458+
441459
| Verb | URI | Action | Route Name |
442-
|-----------|------------------------------------|---------|--------------------------|
460+
| --------- | ---------------------------------- | ------- | ------------------------ |
443461
| GET | `/photos/{photo}/thumbnail/create` | create | photos.thumbnail.create |
444462
| POST | `/photos/{photo}/thumbnail` | store | photos.thumbnail.store |
445463
| GET | `/photos/{photo}/thumbnail` | show | photos.thumbnail.show |
446464
| GET | `/photos/{photo}/thumbnail/edit` | edit | photos.thumbnail.edit |
447465
| PUT/PATCH | `/photos/{photo}/thumbnail` | update | photos.thumbnail.update |
448466
| DELETE | `/photos/{photo}/thumbnail` | destroy | photos.thumbnail.destroy |
449467

468+
</div>
469+
450470
If you would like Laravel to register the `DELETE` route for a singleton resource but not register the creation or storage routes, you may utilize the `destroyable` method:
451471

452472
```php

0 commit comments

Comments
 (0)