Skip to content

Commit 04c76e1

Browse files
committed
Correct sub- spelling
1 parent 52ae7b0 commit 04c76e1

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

blade.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- [CSRF Field](#csrf-field)
1919
- [Method Field](#method-field)
2020
- [Validation Errors](#validation-errors)
21-
- [Including Sub-Views](#including-sub-views)
21+
- [Including Subviews](#including-subviews)
2222
- [Rendering Views For Collections](#rendering-views-for-collections)
2323
- [Stacks](#stacks)
2424
- [Service Injection](#service-injection)
@@ -147,7 +147,7 @@ Sometimes you may need to pass additional data to a component. For this reason,
147147

148148
#### Aliasing Components
149149

150-
If your Blade components are stored in a sub-directory, you may wish to alias them for easier access. For example, imagine a Blade component that is stored at `resources/views/components/alert.blade.php`. You may use the `component` method to alias the component from `components.alert` to `alert`. Typically, this should be done in the `boot` method of your `AppServiceProvider`:
150+
If your Blade components are stored in a subdirectory, you may wish to alias them for easier access. For example, imagine a Blade component that is stored at `resources/views/components/alert.blade.php`. You may use the `component` method to alias the component from `components.alert` to `alert`. Typically, this should be done in the `boot` method of your `AppServiceProvider`:
151151

152152
use Illuminate\Support\Facades\Blade;
153153

@@ -508,8 +508,8 @@ You may pass [the name of a specific error bag](/docs/{{version}}/validation#nam
508508
<div class="alert alert-danger">{{ $message }}</div>
509509
@enderror
510510

511-
<a name="including-sub-views"></a>
512-
## Including Sub-Views
511+
<a name="including-subviews"></a>
512+
## Including Subviews
513513

514514
Blade's `@include` directive allows you to include a Blade view from within another view. All variables that are available to the parent view will be made available to the included view:
515515

@@ -545,7 +545,7 @@ To include the first view that exists from a given array of views, you may use t
545545
546546
#### Aliasing Includes
547547

548-
If your Blade includes are stored in a sub-directory, you may wish to alias them for easier access. For example, imagine a Blade include that is stored at `resources/views/includes/input.blade.php` with the following content:
548+
If your Blade includes are stored in a subdirectory, you may wish to alias them for easier access. For example, imagine a Blade include that is stored at `resources/views/includes/input.blade.php` with the following content:
549549

550550
<input type="{{ $type ?? 'text' }}">
551551

filesystem.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ If necessary, you may specify the disk that the file should be deleted from:
373373

374374
#### Get All Files Within A Directory
375375

376-
The `files` method returns an array of all of the files in a given directory. If you would like to retrieve a list of all files within a given directory including all sub-directories, you may use the `allFiles` method:
376+
The `files` method returns an array of all of the files in a given directory. If you would like to retrieve a list of all files within a given directory including all subdirectories, you may use the `allFiles` method:
377377

378378
use Illuminate\Support\Facades\Storage;
379379

@@ -383,7 +383,7 @@ The `files` method returns an array of all of the files in a given directory. If
383383

384384
#### Get All Directories Within A Directory
385385

386-
The `directories` method returns an array of all the directories within a given directory. Additionally, you may use the `allDirectories` method to get a list of all directories within a given directory and all of its sub-directories:
386+
The `directories` method returns an array of all the directories within a given directory. Additionally, you may use the `allDirectories` method to get a list of all directories within a given directory and all of its subdirectories:
387387

388388
$directories = Storage::directories($directory);
389389

@@ -392,7 +392,7 @@ The `directories` method returns an array of all the directories within a given
392392

393393
#### Create A Directory
394394

395-
The `makeDirectory` method will create the given directory, including any needed sub-directories:
395+
The `makeDirectory` method will create the given directory, including any needed subdirectories:
396396

397397
Storage::makeDirectory($directory);
398398

helpers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ You may also sort the array by the results of the given Closure:
537537
<a name="method-array-sort-recursive"></a>
538538
#### `Arr::sortRecursive()` {#collection-method}
539539

540-
The `Arr::sortRecursive` method recursively sorts an array using the `sort` function for numeric sub=arrays and `ksort` for associative sub-arrays:
540+
The `Arr::sortRecursive` method recursively sorts an array using the `sort` function for numeric sub=arrays and `ksort` for associative subarrays:
541541

542542
use Illuminate\Support\Arr;
543543

installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ You may also want to configure a few additional components of Laravel, such as:
105105
<a name="directory-configuration"></a>
106106
### Directory Configuration
107107

108-
Laravel should always be served out of the root of the "web directory" configured for your web server. You should not attempt to serve a Laravel application out of a sub-directory of the "web directory". Attempting to do so could expose sensitive files present within your application.
108+
Laravel should always be served out of the root of the "web directory" configured for your web server. You should not attempt to serve a Laravel application out of a subdirectory of the "web directory". Attempting to do so could expose sensitive files present within your application.
109109

110110
<a name="pretty-urls"></a>
111111
### Pretty URLs

routing.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [Route Groups](#route-groups)
1212
- [Middleware](#route-group-middleware)
1313
- [Namespaces](#route-group-namespaces)
14-
- [Sub-Domain Routing](#route-group-sub-domain-routing)
14+
- [Subdomain Routing](#route-group-subdomain-routing)
1515
- [Route Prefixes](#route-group-prefixes)
1616
- [Route Name Prefixes](#route-group-name-prefixes)
1717
- [Route Model Binding](#route-model-binding)
@@ -273,18 +273,18 @@ Another common use-case for route groups is assigning the same PHP namespace to
273273

274274
Remember, by default, the `RouteServiceProvider` includes your route files within a namespace group, allowing you to register controller routes without specifying the full `App\Http\Controllers` namespace prefix. So, you only need to specify the portion of the namespace that comes after the base `App\Http\Controllers` namespace.
275275

276-
<a name="route-group-sub-domain-routing"></a>
277-
### Sub-Domain Routing
276+
<a name="route-group-subdomain-routing"></a>
277+
### Subdomain Routing
278278

279-
Route groups may also be used to handle sub-domain routing. Sub-domains may be assigned route parameters just like route URIs, allowing you to capture a portion of the sub-domain for usage in your route or controller. The sub-domain may be specified by calling the `domain` method before defining the group:
279+
Route groups may also be used to handle subdomain routing. Subdomains may be assigned route parameters just like route URIs, allowing you to capture a portion of the subdomain for usage in your route or controller. The subdomain may be specified by calling the `domain` method before defining the group:
280280

281281
Route::domain('{account}.myapp.com')->group(function () {
282282
Route::get('user/{id}', function ($account, $id) {
283283
//
284284
});
285285
});
286286

287-
> {note} In order to ensure your sub-domain routes are reachable, you should register sub-domain routes before registering root domain routes. This will prevent root domain routes from overwriting sub-domain routes which have the same URI path.
287+
> {note} In order to ensure your subdomain routes are reachable, you should register subdomain routes before registering root domain routes. This will prevent root domain routes from overwriting subdomain routes which have the same URI path.
288288
289289
<a name="route-group-prefixes"></a>
290290
### Route Prefixes

views.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Since this view is stored at `resources/views/greeting.blade.php`, we may return
2828

2929
As you can see, the first argument passed to the `view` helper corresponds to the name of the view file in the `resources/views` directory. The second argument is an array of data that should be made available to the view. In this case, we are passing the `name` variable, which is displayed in the view using [Blade syntax](/docs/{{version}}/blade).
3030

31-
Views may also be nested within sub-directories of the `resources/views` directory. "Dot" notation may be used to reference nested views. For example, if your view is stored at `resources/views/admin/profile.blade.php`, you may reference it like so:
31+
Views may also be nested within subdirectories of the `resources/views` directory. "Dot" notation may be used to reference nested views. For example, if your view is stored at `resources/views/admin/profile.blade.php`, you may reference it like so:
3232

3333
return view('admin.profile', $data);
3434

0 commit comments

Comments
 (0)