From 13cb4313ed9c60601474c494ee6f5eb7c1951036 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 17 Feb 2025 15:36:21 -0600 Subject: [PATCH] standardize "none/nothing" fenced code blocks - `nothing` and `none` are both invalid language keys, so replace both of them with the valid generic `text`. the reason I chose `text` over an empty "```" line is that it will make targeting in "find" or "find/replace" easier. - use `shell` where appropriate --- blade.md | 6 +++--- installation.md | 8 ++++---- mail.md | 2 +- pagination.md | 2 +- validation.md | 4 ++-- vite.md | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/blade.md b/blade.md index 7b08cc4825c..a6733cafe3a 100644 --- a/blade.md +++ b/blade.md @@ -762,7 +762,7 @@ If you would like to conditionally render your component, you may define a `shou Sometimes components are part of a component group and you may wish to group the related components within a single directory. For example, imagine a "card" component with the following class structure: -```none +```text App\Views\Components\Card\Card App\Views\Components\Card\Header App\Views\Components\Card\Body @@ -1378,7 +1378,7 @@ You may use the `.` character to indicate if a component is nested deeper inside Sometimes, when a component is made up of many Blade templates, you may wish to group the given component's templates within a single directory. For example, imagine an "accordion" component with the following directory structure: -```none +```text /resources/views/components/accordion.blade.php /resources/views/components/accordion/item.blade.php ``` @@ -1397,7 +1397,7 @@ However, in order to render the accordion component via `x-accordion`, we were f Thankfully, Blade allows you to place a file matching the component's directory name within the component's directory itself. When this template exists, it can be rendered as the "root" element of the component even though it is nested within a directory. So, we can continue to use the same Blade syntax given in the example above; however, we will adjust our directory structure like so: -```none +```text /resources/views/components/accordion/accordion.blade.php /resources/views/components/accordion/item.blade.php ``` diff --git a/installation.md b/installation.md index e2e3c43431f..b6c1591328e 100644 --- a/installation.md +++ b/installation.md @@ -94,13 +94,13 @@ composer global require laravel/installer After you have installed PHP, Composer, and the Laravel installer, you're ready to create a new Laravel application. The Laravel installer will prompt you to select your preferred testing framework, database, and starter kit: -```nothing +```shell laravel new example-app ``` Once the application has been created, you can start Laravel's local development server, queue worker, and Vite development server using the `dev` Composer script: -```nothing +```shell cd example-app npm install && npm run build composer run dev @@ -179,7 +179,7 @@ Herd for macOS uses [dnsmasq](https://en.wikipedia.org/wiki/Dnsmasq) to support After installing Herd, the fastest way to create a new Laravel application is using the Laravel CLI, which is bundled with Herd: -```nothing +```shell cd ~/Herd laravel new my-app cd my-app @@ -201,7 +201,7 @@ During installation, Herd creates a "parked" directory in your home directory at After installing Herd, the fastest way to create a new Laravel application is using the Laravel CLI, which is bundled with Herd. To get started, open Powershell and run the following commands: -```nothing +```shell cd ~\Herd laravel new my-app cd my-app diff --git a/mail.md b/mail.md index df107438282..e764550a9e2 100644 --- a/mail.md +++ b/mail.md @@ -1376,7 +1376,7 @@ Once your custom transport has been defined and registered, you may create a mai Laravel includes support for some existing Symfony maintained mail transports like Mailgun and Postmark. However, you may wish to extend Laravel with support for additional Symfony maintained transports. You can do so by requiring the necessary Symfony mailer via Composer and registering the transport with Laravel. For example, you may install and register the "Brevo" (formerly "Sendinblue") Symfony mailer: -```none +```shell composer require symfony/brevo-mailer symfony/http-client ``` diff --git a/pagination.md b/pagination.md index d6179e599ab..553cc9167c0 100644 --- a/pagination.md +++ b/pagination.md @@ -115,7 +115,7 @@ While `paginate` and `simplePaginate` create queries using the SQL "offset" clau Unlike offset based pagination, which includes a page number in the query string of the URLs generated by the paginator, cursor based pagination places a "cursor" string in the query string. The cursor is an encoded string containing the location that the next paginated query should start paginating and the direction that it should paginate: -```nothing +```text http://localhost/users?cursor=eyJpZCI6MTUsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0 ``` diff --git a/validation.md b/validation.md index 90646e16e01..6faf67c72ca 100644 --- a/validation.md +++ b/validation.md @@ -824,7 +824,7 @@ Some of Laravel's built-in validation rule error messages contain a `:value` pla If this validation rule fails, it will produce the following error message: -```none +```text The credit card number field is required when payment type is cc. ``` @@ -841,7 +841,7 @@ Instead of displaying `cc` as the payment type value, you may specify a more use After defining this value, the validation rule will produce the following error message: -```none +```text The credit card number field is required when payment type is credit card. ``` diff --git a/vite.md b/vite.md index f002e40426f..becb91b8198 100644 --- a/vite.md +++ b/vite.md @@ -421,7 +421,7 @@ When referencing relative asset paths, you should remember that the paths are re Consider the following project structure: -```nothing +```text public/ taylor.png resources/ @@ -646,7 +646,7 @@ ASSET_URL=https://cdn.example.com After configuring the asset URL, all re-written URLs to your assets will be prefixed with the configured value: -```nothing +```text https://cdn.example.com/build/assets/app.9dce8d17.js ```