You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: original-en/filesystem.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ Next, you may include the `read-only` configuration option in one or more of you
203
203
<aname="amazon-s3-compatible-filesystems"></a>
204
204
### Amazon S3 Compatible Filesystems
205
205
206
-
By default, your application's `filesystems` configuration file contains a disk configuration for the `s3` disk. In addition to using this disk to interact with [Amazon S3](https://aws.amazon.com/s3/), you may use it to interact with any S3-compatible file storage service such as [MinIO](https://github.com/minio/minio), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/), [Akamai / Linode Object Storage](https://www.linode.com/products/object-storage/), [Vultr Object Storage](https://www.vultr.com/products/object-storage/), or [Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/).
206
+
By default, your application's `filesystems` configuration file contains a disk configuration for the `s3` disk. In addition to using this disk to interact with [Amazon S3](https://aws.amazon.com/s3/), you may use it to interact with any S3-compatible file storage service such as [MinIO](https://github.com/minio/minio), [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces/), [Vultr Object Storage](https://www.vultr.com/products/object-storage/), [Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/), or [Hetzner Cloud Storage](https://www.hetzner.com/storage/object-storage/).
207
207
208
208
Typically, after updating the disk's credentials to match the credentials of the service you are planning to use, you only need to update the value of the `endpoint` configuration option. This option's value is typically defined via the `AWS_ENDPOINT` environment variable:
Copy file name to clipboardExpand all lines: original-en/precognition.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,12 +152,13 @@ If you are validating a subset of a form's inputs with Precognition, it can be u
152
152
153
153
As we have seen, you can hook into an input's `change` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
154
154
155
-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
155
+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
@@ -338,12 +339,13 @@ If you are validating a subset of a form's inputs with Precognition, it can be u
338
339
339
340
As we have seen, you can hook into an input's `blur` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
340
341
341
-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
342
+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
@@ -531,12 +533,13 @@ You may also determine if an input has passed or failed validation by passing th
531
533
532
534
As we have seen, you can hook into an input's `change` event and validate individual inputs as the user interacts with them; however, you may need to validate inputs that the user has not yet interacted with. This is common when building a "wizard", where you want to validate all visible inputs, whether the user has interacted with them or not, before moving to the next step.
533
535
534
-
To do this with Precognition, you should mark the fields you wish to validate as "touched" by passing their names to the `touch` method. Then, call the `validate` method with `onSuccess` or `onValidationError` callbacks:
536
+
To do this with Precognition, you should call the `validate` method passing the field names you wish to validate to the `only` configuration key. You may handle the validation result with `onSuccess` or `onValidationError` callbacks:
The `wherePast` and `whereFuture` methods may be used to determine if a column's value is in the past or future:
781
+
782
+
$invoices = DB::table('invoices')
783
+
->wherePast('due_at')
784
+
->get();
785
+
786
+
$invoices = DB::table('invoices')
787
+
->whereFuture('due_at')
788
+
->get();
789
+
790
+
The `whereNowOrPast` and `whereNowOrFuture` methods may be used to determine if a column's value is in the past or future, inclusive of the current date and time:
791
+
792
+
$invoices = DB::table('invoices')
793
+
->whereNowOrPast('due_at')
794
+
->get();
795
+
796
+
$invoices = DB::table('invoices')
797
+
->whereNowOrFuture('due_at')
798
+
->get();
799
+
800
+
The `whereToday`, `whereBeforeToday`, and `whereAfterToday` methods may be used to determine if a column's value is today, before today, or after today, respectively:
801
+
802
+
$invoices = DB::table('invoices')
803
+
->whereToday('due_at')
804
+
->get();
805
+
806
+
$invoices = DB::table('invoices')
807
+
->whereBeforeToday('due_at')
808
+
->get();
809
+
810
+
$invoices = DB::table('invoices')
811
+
->whereAfterToday('due_at')
812
+
->get();
813
+
814
+
Similarly, the `whereTodayOrBefore` and `whereTodayOrAfter` methods may be used to determine if a column's value is before today or after today, inclusive of today's date:
815
+
816
+
$invoices = DB::table('invoices')
817
+
->whereTodayOrBefore('due_at')
818
+
->get();
819
+
820
+
$invoices = DB::table('invoices')
821
+
->whereTodayOrAfter('due_at')
822
+
->get();
823
+
778
824
**whereColumn / orWhereColumn**
779
825
780
826
The `whereColumn` method may be used to verify that two columns are equal:
0 commit comments