Skip to content

Commit

Permalink
Wording (#9929)
Browse files Browse the repository at this point in the history
  • Loading branch information
u01jmg3 authored Oct 3, 2024
1 parent 45969e3 commit ead3a5b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@ Because the `color` prop was only passed into the parent (`<x-menu>`), it won't
```

> [!WARNING]
> The `@aware` directive can not access parent data that is not explicitly passed to the parent component via HTML attributes. Default `@props` values that are not explicitly passed to the parent component can not be accessed by the `@aware` directive.
> The `@aware` directive cannot access parent data that is not explicitly passed to the parent component via HTML attributes. Default `@props` values that are not explicitly passed to the parent component cannot be accessed by the `@aware` directive.
<a name="anonymous-component-paths"></a>
### Anonymous Component Paths
Expand Down
2 changes: 1 addition & 1 deletion cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ The `get` method also accepts a closure. After the closure is executed, Laravel
// Lock acquired for 10 seconds and automatically released...
});

If the lock is not available at the moment you request it, you may instruct Laravel to wait for a specified number of seconds. If the lock can not be acquired within the specified time limit, an `Illuminate\Contracts\Cache\LockTimeoutException` will be thrown:
If the lock is not available at the moment you request it, you may instruct Laravel to wait for a specified number of seconds. If the lock cannot be acquired within the specified time limit, an `Illuminate\Contracts\Cache\LockTimeoutException` will be thrown:

use Illuminate\Contracts\Cache\LockTimeoutException;

Expand Down
2 changes: 1 addition & 1 deletion controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ You may even register many resource controllers at once by passing an array to t
<a name="customizing-missing-model-behavior"></a>
#### Customizing Missing Model Behavior

Typically, a 404 HTTP response will be generated if an implicitly bound resource model is not found. However, you may customize this behavior by calling the `missing` method when defining your resource route. The `missing` method accepts a closure that will be invoked if an implicitly bound model can not be found for any of the resource's routes:
Typically, a 404 HTTP response will be generated if an implicitly bound resource model is not found. However, you may customize this behavior by calling the `missing` method when defining your resource route. The `missing` method accepts a closure that will be invoked if an implicitly bound model cannot be found for any of the resource's routes:

use App\Http\Controllers\PhotoController;
use Illuminate\Http\Request;
Expand Down
2 changes: 1 addition & 1 deletion eloquent.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ If the `ModelNotFoundException` is not caught, a 404 HTTP response is automatica
<a name="retrieving-or-creating-models"></a>
### Retrieving or Creating Models

The `firstOrCreate` method will attempt to locate a database record using the given column / value pairs. If the model can not be found in the database, a record will be inserted with the attributes resulting from merging the first array argument with the optional second array argument:
The `firstOrCreate` method will attempt to locate a database record using the given column / value pairs. If the model cannot be found in the database, a record will be inserted with the attributes resulting from merging the first array argument with the optional second array argument:

The `firstOrNew` method, like `firstOrCreate`, will attempt to locate a record in the database matching the given attributes. However, if a model is not found, a new model instance will be returned. Note that the model returned by `firstOrNew` has not yet been persisted to the database. You will need to manually call the `save` method to persist it:

Expand Down
4 changes: 2 additions & 2 deletions encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a name="introduction"></a>
## Introduction

Laravel's encryption services provide a simple, convenient interface for encrypting and decrypting text via OpenSSL using AES-256 and AES-128 encryption. All of Laravel's encrypted values are signed using a message authentication code (MAC) so that their underlying value can not be modified or tampered with once encrypted.
Laravel's encryption services provide a simple, convenient interface for encrypting and decrypting text via OpenSSL using AES-256 and AES-128 encryption. All of Laravel's encrypted values are signed using a message authentication code (MAC) so that their underlying value cannot be modified or tampered with once encrypted.

<a name="configuration"></a>
## Configuration
Expand Down Expand Up @@ -65,7 +65,7 @@ You may encrypt a value using the `encryptString` method provided by the `Crypt`
<a name="decrypting-a-value"></a>
#### Decrypting a Value

You may decrypt values using the `decryptString` method provided by the `Crypt` facade. If the value can not be properly decrypted, such as when the message authentication code is invalid, an `Illuminate\Contracts\Encryption\DecryptException` will be thrown:
You may decrypt values using the `decryptString` method provided by the `Crypt` facade. If the value cannot be properly decrypted, such as when the message authentication code is invalid, an `Illuminate\Contracts\Encryption\DecryptException` will be thrown:

use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Support\Facades\Crypt;
Expand Down
2 changes: 1 addition & 1 deletion packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Now, when users of your package execute Laravel's `vendor:publish` command, your
$value = config('courier.option');

> [!WARNING]
> You should not define closures in your configuration files. They can not be serialized correctly when users execute the `config:cache` Artisan command.
> You should not define closures in your configuration files. They cannot be serialized correctly when users execute the `config:cache` Artisan command.
<a name="default-package-configuration"></a>
#### Default Package Configuration
Expand Down
4 changes: 2 additions & 2 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Sometimes you may need to insert an arbitrary string into a query. To create a r
<a name="raw-methods"></a>
### Raw Methods

Instead of using the `DB::raw` method, you may also use the following methods to insert a raw expression into various parts of your query. **Remember, Laravel can not guarantee that any query using raw expressions is protected against SQL injection vulnerabilities.**
Instead of using the `DB::raw` method, you may also use the following methods to insert a raw expression into various parts of your query. **Remember, Laravel cannot guarantee that any query using raw expressions is protected against SQL injection vulnerabilities.**

<a name="selectraw"></a>
#### `selectRaw`
Expand Down Expand Up @@ -1096,7 +1096,7 @@ In addition to inserting records into the database, the query builder can also u

Sometimes you may want to update an existing record in the database or create it if no matching record exists. In this scenario, the `updateOrInsert` method may be used. The `updateOrInsert` method accepts two arguments: an array of conditions by which to find the record, and an array of column and value pairs indicating the columns to be updated.

The `updateOrInsert` method will attempt to locate a matching database record using the first argument's column and value pairs. If the record exists, it will be updated with the values in the second argument. If the record can not be found, a new record will be inserted with the merged attributes of both arguments:
The `updateOrInsert` method will attempt to locate a matching database record using the first argument's column and value pairs. If the record exists, it will be updated with the values in the second argument. If the record cannot be found, a new record will be inserted with the merged attributes of both arguments:

DB::table('users')
->updateOrInsert(
Expand Down
2 changes: 1 addition & 1 deletion queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ If you defined your DynamoDB table with a `ttl` attribute, you may define config
<a name="queueing-closures"></a>
## Queueing Closures

Instead of dispatching a job class to the queue, you may also dispatch a closure. This is great for quick, simple tasks that need to be executed outside of the current request cycle. When dispatching closures to the queue, the closure's code content is cryptographically signed so that it can not be modified in transit:
Instead of dispatching a job class to the queue, you may also dispatch a closure. This is great for quick, simple tasks that need to be executed outside of the current request cycle. When dispatching closures to the queue, the closure's code content is cryptographically signed so that it cannot be modified in transit:

$podcast = App\Podcast::find(1);

Expand Down
2 changes: 1 addition & 1 deletion routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ Similarly, you may explicitly instruct Laravel to not scope bindings by invoking
<a name="customizing-missing-model-behavior"></a>
#### Customizing Missing Model Behavior

Typically, a 404 HTTP response will be generated if an implicitly bound model is not found. However, you may customize this behavior by calling the `missing` method when defining your route. The `missing` method accepts a closure that will be invoked if an implicitly bound model can not be found:
Typically, a 404 HTTP response will be generated if an implicitly bound model is not found. However, you may customize this behavior by calling the `missing` method when defining your route. The `missing` method accepts a closure that will be invoked if an implicitly bound model cannot be found:

use App\Http\Controllers\LocationsController;
use Illuminate\Http\Request;
Expand Down

0 comments on commit ead3a5b

Please sign in to comment.