Skip to content

Commit 49225e5

Browse files
authored
standardize bash vs shell code fence language (#10174)
both `bash` and `shell` are used interchangably for the code blocks they surround, so we'll standardize to the more common `shell` option.
1 parent f63817c commit 49225e5

6 files changed

+22
-22
lines changed

concurrency.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The `Concurrency` facade supports three drivers: `process` (the default), `fork`
4444

4545
The `fork` driver offers improved performance compared to the default `process` driver, but it may only be used within PHP's CLI context, as PHP does not support forking during web requests. Before using the `fork` driver, you need to install the `spatie/fork` package:
4646

47-
```bash
47+
```shell
4848
composer require spatie/fork
4949
```
5050

@@ -73,7 +73,7 @@ $results = Concurrency::driver('fork')->run(...);
7373

7474
Or, to change the default concurrency driver, you should publish the `concurrency` configuration file via the `config:publish` Artisan command and update the `default` option within the file:
7575

76-
```bash
76+
```shell
7777
php artisan config:publish concurrency
7878
```
7979

folio.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ For example, to create a page that is accessible at the `/greeting` URL, just cr
3333

3434
To get started, install Folio into your project using the Composer package manager:
3535

36-
```bash
36+
```shell
3737
composer require laravel/folio
3838
```
3939

4040
After installing Folio, you may execute the `folio:install` Artisan command, which will install Folio's service provider into your application. This service provider registers the directory where Folio will search for routes / pages:
4141

42-
```bash
42+
```shell
4343
php artisan folio:install
4444
```
4545

@@ -99,7 +99,7 @@ Once a Blade template has been placed in a Folio mounted directory, you may imme
9999

100100
To quickly view a list of all of your Folio pages / routes, you may invoke the `folio:list` Artisan command:
101101

102-
```bash
102+
```shell
103103
php artisan folio:list
104104
```
105105

@@ -108,7 +108,7 @@ php artisan folio:list
108108

109109
You may create a nested route by creating one or more directories within one of Folio's directories. For instance, to create a page that is accessible via `/user/profile`, create a `profile.blade.php` template within the `pages/user` directory:
110110

111-
```bash
111+
```shell
112112
php artisan folio:page user/profile
113113

114114
# pages/user/profile.blade.php → /user/profile
@@ -119,7 +119,7 @@ php artisan folio:page user/profile
119119

120120
Sometimes, you may wish to make a given page the "index" of a directory. By placing an `index.blade.php` template within a Folio directory, any requests to the root of that directory will be routed to that page:
121121

122-
```bash
122+
```shell
123123
php artisan folio:page index
124124
# pages/index.blade.php → /
125125

@@ -132,7 +132,7 @@ php artisan folio:page users/index
132132

133133
Often, you will need to have segments of the incoming request's URL injected into your page so that you can interact with them. For example, you may need to access the "ID" of the user whose profile is being displayed. To accomplish this, you may encapsulate a segment of the page's filename in square brackets:
134134

135-
```bash
135+
```shell
136136
php artisan folio:page "users/[id]"
137137

138138
# pages/users/[id].blade.php → /users/1
@@ -148,7 +148,7 @@ Captured segments can be accessed as variables within your Blade template:
148148

149149
To capture multiple segments, you can prefix the encapsulated segment with three dots `...`:
150150

151-
```bash
151+
```shell
152152
php artisan folio:page "users/[...ids]"
153153

154154
# pages/users/[...ids].blade.php → /users/1/2/3
@@ -169,7 +169,7 @@ When capturing multiple segments, the captured segments will be injected into th
169169

170170
If a wildcard segment of your page template's filename corresponds one of your application's Eloquent models, Folio will automatically take advantage of Laravel's route model binding capabilities and attempt to inject the resolved model instance into your page:
171171

172-
```bash
172+
```shell
173173
php artisan folio:page "users/[User]"
174174

175175
# pages/users/[User].blade.php → /users/1
@@ -193,7 +193,7 @@ On Windows, you should use `-` to separate the model name from the key: `[Post-s
193193

194194
By default, Folio will search for your model within your application's `app/Models` directory. However, if needed, you may specify the fully-qualified model class name in your template's filename:
195195

196-
```bash
196+
```shell
197197
php artisan folio:page "users/[.App.Models.User]"
198198

199199
# pages/users/[.App.Models.User].blade.php → /users/1

hashing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ By default, Laravel uses the `bcrypt` hashing driver when hashing data. However,
2222

2323
You may specify your application's hashing driver using the `HASH_DRIVER` environment variable. But, if you want to customize all of Laravel's hashing driver options, you should publish the complete `hashing` configuration file using the `config:publish` Artisan command:
2424

25-
```bash
25+
```shell
2626
php artisan config:publish hashing
2727
```
2828

logging.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Laravel Pail is a package that allows you to easily dive into your Laravel appli
490490
491491
To get started, install Pail into your project using the Composer package manager:
492492

493-
```bash
493+
```shell
494494
composer require laravel/pail
495495
```
496496

@@ -499,19 +499,19 @@ composer require laravel/pail
499499

500500
To start tailing logs, run the `pail` command:
501501

502-
```bash
502+
```shell
503503
php artisan pail
504504
```
505505

506506
To increase the verbosity of the output and avoid truncation (…), use the `-v` option:
507507

508-
```bash
508+
```shell
509509
php artisan pail -v
510510
```
511511

512512
For maximum verbosity and to display exception stack traces, use the `-vv` option:
513513

514-
```bash
514+
```shell
515515
php artisan pail -vv
516516
```
517517

@@ -525,7 +525,7 @@ To stop tailing logs, press `Ctrl+C` at any time.
525525

526526
You may use the `--filter` option to filter logs by their type, file, message, and stack trace content:
527527

528-
```bash
528+
```shell
529529
php artisan pail --filter="QueryException"
530530
```
531531

@@ -534,7 +534,7 @@ php artisan pail --filter="QueryException"
534534

535535
To filter logs by only their message, you may use the `--message` option:
536536

537-
```bash
537+
```shell
538538
php artisan pail --message="User created"
539539
```
540540

@@ -543,7 +543,7 @@ php artisan pail --message="User created"
543543

544544
The `--level` option may be used to filter logs by their [log level](#log-levels):
545545

546-
```bash
546+
```shell
547547
php artisan pail --level=error
548548
```
549549

@@ -552,6 +552,6 @@ php artisan pail --level=error
552552

553553
To only display logs that were written while a given user was authenticated, you may provide the user's ID to the `--user` option:
554554

555-
```bash
555+
```shell
556556
php artisan pail --user=1
557557
```

sanctum.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ If you are having trouble authenticating with your application from an SPA that
275275

276276
The `config/cors.php` configuration file is not published by default. If you need to customize Laravel's CORS options, you should publish the complete `cors` configuration file using the `config:publish` Artisan command:
277277

278-
```bash
278+
```shell
279279
php artisan config:publish cors
280280
```
281281

scheduling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ If you prefer to reserve your `routes/console.php` file for command definitions
5454

5555
If you would like to view an overview of your scheduled tasks and the next time they are scheduled to run, you may use the `schedule:list` Artisan command:
5656

57-
```bash
57+
```shell
5858
php artisan schedule:list
5959
```
6060

0 commit comments

Comments
 (0)