Skip to content

Commit 1449603

Browse files
Laravel 13 (#1829)
1 parent ee74e14 commit 1449603

23 files changed

+32
-32
lines changed

content/collections/modifiers/to_qs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ modifier_types:
66
- array
77
- utility
88
---
9-
Converts an array or array-like value into a query string using Laravel's [Arr::query()](https://laravel.com/docs/12.x/helpers#method-array-query) helper method.
9+
Converts an array or array-like value into a query string using Laravel's [Arr::query()](https://laravel.com/docs/13.x/helpers#method-array-query) helper method.
1010

1111
```yaml
1212
$params = [

content/collections/modifiers/where.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Dominion
5050
Netrunner
5151
```
5252

53-
You can also pass an operator to the modifier, so you can do checks like "where not" and "where greater than". Under the hood, this uses [the `where` method of Laravel Collections](https://laravel.com/docs/12.x/collections#method-where), so you can use any operators it supports.
53+
You can also pass an operator to the modifier, so you can do checks like "where not" and "where greater than". Under the hood, this uses [the `where` method of Laravel Collections](https://laravel.com/docs/13.x/collections#method-where), so you can use any operators it supports.
5454

5555
```
5656
<h2>I hate...</h2>

content/collections/pages/5-to-6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ composer update statamic/cms --with-dependencies
3232
- The minimum version of PHP is now 8.3.
3333
- The minimum version of Laravel is now 12.
3434

35-
We highly recommend upgrading all the way to Laravel 12 and PHP 8.5.
35+
We highly recommend upgrading all the way to Laravel 13 and PHP 8.5.
3636

3737
:::tip
3838
If you want to (semi-)automate the Laravel upgrade process, we recommend using [Laravel Shift](https://laravelshift.com/discounts/statamic-1983) (use that link for a special 19.83% discount 🤘).

content/collections/pages/blueprints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ If you omit the `prefix` you won't be able to import them more than once at the
217217

218218
Fields can have various validation rules applied to them, enforcing the need for content creators to fill them out in a specific way before saving or publishing.
219219

220-
While configuring a field, switch to the **Validation** tab where you can choose from [any built in Laravel rule](https://laravel.com/docs/12.x/validation#available-validation-rules).
220+
While configuring a field, switch to the **Validation** tab where you can choose from [any built in Laravel rule](https://laravel.com/docs/13.x/validation#available-validation-rules).
221221

222222
On top of any Laravel validation rules, there are some Statamic-specific goodies (like usage with conditional fields, Grids, Bards, or Replicators) that are explained on our [dedicated validation documentation](/validation).
223223

content/collections/pages/content-queries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ These methods will work no matter which driver you're using — flat files, Eloq
1313
[Learn how Statamic can use different storage methods!](/extending/repositories)
1414

1515
:::tip
16-
While Statamic's Query builder is very similar to [Laravel's Query Builder](https://laravel.com/docs/12.x/queries), they are **completely separate implementations**.
16+
While Statamic's Query builder is very similar to [Laravel's Query Builder](https://laravel.com/docs/13.x/queries), they are **completely separate implementations**.
1717

1818
What follows is complete documentation on all available methods. If you need a method available in Laravel that we don't currently support, feel free to open a [feature request](https://github.com/statamic/ideas) or better yet, a [Pull Request](https://github.com/statamic/cms)!
1919
:::
@@ -502,7 +502,7 @@ Entry::query()->paginate(15);
502502
This will return an instance of `Illuminate\Pagination\LengthAwarePaginator` that you can use to assemble the pagination style of your choice.
503503

504504
:::tip
505-
You can [learn more about the LengthAwarePaginator](https://laravel.com/docs/12.x/pagination#paginator-instance-methods)in the Laravel docs.
505+
You can [learn more about the LengthAwarePaginator](https://laravel.com/docs/13.x/pagination#paginator-instance-methods)in the Laravel docs.
506506
:::
507507

508508
## Chunking
@@ -518,7 +518,7 @@ Entry::query()->chunk(25, function($entries) {
518518
```
519519

520520
:::tip
521-
You can [learn more about chunking query results](https://laravel.com/docs/12.x/queries#chunking-results) in the Laravel docs.
521+
You can [learn more about chunking query results](https://laravel.com/docs/13.x/queries#chunking-results) in the Laravel docs.
522522
:::
523523

524524
## Lazy streaming
@@ -532,7 +532,7 @@ Entry::query()->lazy(100)
532532
```
533533

534534
:::tip
535-
You can learn more about [lazily streaming query results](https://laravel.com/docs/12.x/queries#streaming-results-lazily) and [LazyCollections](https://laravel.com/docs/12.x/collections#lazy-collections) in the Laravel docs.
535+
You can learn more about [lazily streaming query results](https://laravel.com/docs/13.x/queries#streaming-results-lazily) and [LazyCollections](https://laravel.com/docs/13.x/collections#lazy-collections) in the Laravel docs.
536536
:::
537537

538538
## Repository classes

content/collections/pages/docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ intro: Docker is an open source project that streamlines the deployment of an ap
77
parent: ab08f409-8bbe-4ede-b421-d05777d292f7
88
---
99
## Overview
10-
[Laravel Sail](https://laravel.com/docs/12.x/sail) is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Sail provides a great starting point for building Laravel applications without requiring prior Docker experience, and is a perfect fit for Statamic with a few tweaks.
10+
[Laravel Sail](https://laravel.com/docs/13.x/sail) is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Sail provides a great starting point for building Laravel applications without requiring prior Docker experience, and is a perfect fit for Statamic with a few tweaks.
1111

1212
At its heart, Sail is a `docker-compose.yml` file and script that is stored at the root of your project. The sail script provides a CLI with convenient methods for interacting with the Docker containers defined by the `docker-compose.yml` file.
1313

@@ -75,4 +75,4 @@ Keep in mind that commands need to be run inside Sail.
7575

7676
## Learn more about Laravel Sail
7777

78-
The [Laravel Sail docs](https://laravel.com/docs/12.x/sail) cover a lot more of what you can do with Sail. Check them out!
78+
The [Laravel Sail docs](https://laravel.com/docs/13.x/sail) cover a lot more of what you can do with Sail. Check them out!

content/collections/pages/fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Learn more about configuring Statamic for [multi-site](/multi-site) projects.
114114

115115
You may provide translations for the field UI (such as the display text, instructions, select option labels, etc). This allows content editors to display the Control Panel in their preferred language, regardless of whether it's used in a multi-site setup.
116116

117-
Field UI strings are run through [Laravel's translations](https://laravel.com/docs/12.x/localization) feature.
117+
Field UI strings are run through [Laravel's translations](https://laravel.com/docs/13.x/localization) feature.
118118

119119
For example, you may have a field defined like this:
120120

content/collections/pages/forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Someone has taken the time to fill out a form on your website. Here are the deta
490490
Make sure you don't use indentation in your Markdown view. Laravel's markdown parser will render it as code.
491491
:::
492492

493-
You can customize the components further by reviewing the [Laravel documentation](https://laravel.com/docs/12.x/mail#customizing-the-components).
493+
You can customize the components further by reviewing the [Laravel documentation](https://laravel.com/docs/13.x/mail#customizing-the-components).
494494

495495
## File uploads
496496

@@ -626,7 +626,7 @@ axios.post(form.action, new FormData(form))
626626

627627
## Precognition
628628

629-
Statamic supports using [Laravel Precognition](https://laravel.com/docs/12.x/precognition) in forms.
629+
Statamic supports using [Laravel Precognition](https://laravel.com/docs/13.x/precognition) in forms.
630630

631631
Here is a basic example that uses Alpine.js for the Precognition validation, and a regular form submission. This is a starting point that you may customize as needed. For instance, you might prefer to use AJAX to submit the form.
632632

content/collections/pages/from-wordpress-to-statamic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The [Shopify addon](https://statamic.com/addons/rad-pack/shopify) helps you inte
110110

111111
There are integrations for [Lemon Squeezy](https://statamic.com/addons/rias/lemon-squeezy) and [Snipcart](https://statamic.com/addons/aerni/snipcart) as well.
112112

113-
Additionally, Statamic benefits from Laravel's extensive ecosystem, which includes tools like [Laravel Cashier](https://laravel.com/docs/12.x/billing) for subscription billing, and integrations with payment processors such as Stripe and Paddle. This flexibility allows developers to create fully custom e-commerce solutions tailored to specific needs.
113+
Additionally, Statamic benefits from Laravel's extensive ecosystem, which includes tools like [Laravel Cashier](https://laravel.com/docs/13.x/billing) for subscription billing, and integrations with payment processors such as Stripe and Paddle. This flexibility allows developers to create fully custom e-commerce solutions tailored to specific needs.
114114

115115
## Forms
116116

content/collections/pages/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Triggered at the end of the `multisite` command. This hook allows you to run cod
179179
The payload is `null`.
180180

181181
### GetItemsContainingData: `additional`
182-
Triggered when updating asset and term references. This hook allows you to return additional content to be updated. You should return a [`LazyCollection`](https://laravel.com/docs/12.x/collections#lazy-collections).
182+
Triggered when updating asset and term references. This hook allows you to return additional content to be updated. You should return a [`LazyCollection`](https://laravel.com/docs/13.x/collections#lazy-collections).
183183

184184
## Triggering your own hooks
185185

0 commit comments

Comments
 (0)