Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/collections/modifiers/to_qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ modifier_types:
- array
- utility
---
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.
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.

```yaml
$params = [
Expand Down
2 changes: 1 addition & 1 deletion content/collections/modifiers/where.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Dominion
Netrunner
```

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.
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.

```
<h2>I hate...</h2>
Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/5-to-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ composer update statamic/cms --with-dependencies
- The minimum version of PHP is now 8.3.
- The minimum version of Laravel is now 12.

We highly recommend upgrading all the way to Laravel 12 and PHP 8.5.
We highly recommend upgrading all the way to Laravel 13 and PHP 8.5.

:::tip
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 🤘).
Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/blueprints.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ If you omit the `prefix` you won't be able to import them more than once at the

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.

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).
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).

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).

Expand Down
8 changes: 4 additions & 4 deletions content/collections/pages/content-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These methods will work no matter which driver you're using — flat files, Eloq
[Learn how Statamic can use different storage methods!](/extending/repositories)

:::tip
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**.
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**.

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)!
:::
Expand Down Expand Up @@ -502,7 +502,7 @@ Entry::query()->paginate(15);
This will return an instance of `Illuminate\Pagination\LengthAwarePaginator` that you can use to assemble the pagination style of your choice.

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

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

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

## Lazy streaming
Expand All @@ -532,7 +532,7 @@ Entry::query()->lazy(100)
```

:::tip
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.
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.
:::

## Repository classes
Expand Down
4 changes: 2 additions & 2 deletions content/collections/pages/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ intro: Docker is an open source project that streamlines the deployment of an ap
parent: ab08f409-8bbe-4ede-b421-d05777d292f7
---
## Overview
[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.
[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.

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.

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

## Learn more about Laravel Sail

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!
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!
2 changes: 1 addition & 1 deletion content/collections/pages/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Learn more about configuring Statamic for [multi-site](/multi-site) projects.

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.

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

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

Expand Down
4 changes: 2 additions & 2 deletions content/collections/pages/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ Someone has taken the time to fill out a form on your website. Here are the deta
Make sure you don't use indentation in your Markdown view. Laravel's markdown parser will render it as code.
:::

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

## File uploads

Expand Down Expand Up @@ -626,7 +626,7 @@ axios.post(form.action, new FormData(form))

## Precognition

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

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.

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/from-wordpress-to-statamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The [Shopify addon](https://statamic.com/addons/rad-pack/shopify) helps you inte

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

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.
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.

## Forms

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Triggered at the end of the `multisite` command. This hook allows you to run cod
The payload is `null`.

### GetItemsContainingData: `additional`
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).
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).

## Triggering your own hooks

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/image-manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ In this example, you would also need to create a Redis database named `glide` in
],
```

When using the [database driver](https://laravel.com/docs/12.x/cache#prerequisites-database), make sure to specify the connection and table, like so:
When using the [database driver](https://laravel.com/docs/13.x/cache#prerequisites-database), make sure to specify the connection and table, like so:

```php
'glide' => [
Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/laravel-cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ You may encounter this error when submitting a form on the frontend, or updating

You can fix it by changing your application's session driver from `cookie` to another driver, like `database` or `redis`.

You can find more information about session drivers on the [Laravel documentation](https://laravel.com/docs/12.x/session#introduction).
You can find more information about session drivers on the [Laravel documentation](https://laravel.com/docs/13.x/session#introduction).
2 changes: 1 addition & 1 deletion content/collections/pages/overview.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You could do so many different things, like:

- Use our [GraphQL](/graphql) integration and build your frontend with [Gatsby.js](https://www.gatsbyjs.com/)
- Use our [REST API](/rest-api) and build a single page application with [Vue.js](https://vuejs.org) or [React](https://reactjs.org/)
- Use [Laravel Blade](https://laravel.com/docs/12.x/blade) and some controllers and write your own routes.
- Use [Laravel Blade](https://laravel.com/docs/13.x/blade) and some controllers and write your own routes.

It's up to you.

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/requirements.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Requirements
intro: Statamic is a modern PHP application built as a [Laravel](https://laravel.com) package, which carries with it the same [server requirements](https://laravel.com/docs/12.x/deployment#server-requirements) as Laravel itself. To manipulate images (resize, crop, etc), you will also need the GD Library or ImageMagick installed on your server.
intro: Statamic is a modern PHP application built as a [Laravel](https://laravel.com) package, which carries with it the same [server requirements](https://laravel.com/docs/13.x/deployment#server-requirements) as Laravel itself. To manipulate images (resize, crop, etc), you will also need the GD Library or ImageMagick installed on your server.
template: page
id: 792644d2-8bd2-421d-a080-e0be7fca125c
blueprint: page
Expand Down
6 changes: 3 additions & 3 deletions content/collections/pages/scheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Statamic leverages task scheduling via Laravel's Task Scheduler.

In a nutshell, you can create a single cron job which will allow things to happen on a schedule, without any visitors needing to be on the site.

[Learn more about scheduling tasks in the Laravel docs](https://laravel.com/docs/12.x/scheduling)
[Learn more about scheduling tasks in the Laravel docs](https://laravel.com/docs/13.x/scheduling)

## Running the scheduler

Expand All @@ -34,7 +34,7 @@ Typically, you would not add a scheduler cron entry to your local development ma
php artisan schedule:work
```

[Learn more about running the scheduler](https://laravel.com/docs/12.x/scheduling#running-the-scheduler)
[Learn more about running the scheduler](https://laravel.com/docs/13.x/scheduling#running-the-scheduler)

## Included tasks

Expand All @@ -57,4 +57,4 @@ Schedule::command('my-command')->daily();
Schedule::job(new Heartbeat)->everyFiveMinutes();
```

[Learn more about defining schedules](https://laravel.com/docs/12.x/scheduling#defining-schedules)
[Learn more about defining schedules](https://laravel.com/docs/13.x/scheduling#defining-schedules)
2 changes: 1 addition & 1 deletion content/collections/pages/sites-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Http::acceptJson()
->post('https://statamic.com/api/v1/sites', $payload);
```

_*For more info, read more about [headers](https://laravel.com/docs/12.x/http-client#headers) and [bearer tokens](https://laravel.com/docs/12.x/http-client#bearer-tokens) in Laravel.*_
_*For more info, read more about [headers](https://laravel.com/docs/13.x/http-client#headers) and [bearer tokens](https://laravel.com/docs/13.x/http-client#bearer-tokens) in Laravel.*_

## Endpoints

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ExampleTest extends TestCase
}
```

For more information on writing tests, please review the [Laravel Testing Documentation](https://laravel.com/docs/12.x/testing).
For more information on writing tests, please review the [Laravel Testing Documentation](https://laravel.com/docs/13.x/testing).

### The Stache

Expand Down
2 changes: 1 addition & 1 deletion content/collections/pages/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function boot()
}
```

Consult the [Laravel documentation](https://laravel.com/docs/12.x/validation#validating-passwords) to see all the available methods for customizing the password rule.
Consult the [Laravel documentation](https://laravel.com/docs/13.x/validation#validating-passwords) to see all the available methods for customizing the password rule.

## Storing user records {#storage}

Expand Down
4 changes: 2 additions & 2 deletions content/collections/pages/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ If you want to override the field that is being validated (e.g. in Livewire Form
## Custom Rules

You may use custom validation rules via Laravel's `Rule` objects.
[Documentation on those is here](https://laravel.com/docs/12.x/validation#using-rule-objects).
[Documentation on those is here](https://laravel.com/docs/13.x/validation#using-rule-objects).

To references those from your field, you can add them to your `validation` array as if you were writing PHP:

Expand Down Expand Up @@ -179,4 +179,4 @@ $entry->data($valid)->save();

The `validate` method would throw a `ValidationException` if invalid and return the appropriate response.

[laravel-validation]: https://laravel.com/docs/12.x/validation#available-validation-rules
[laravel-validation]: https://laravel.com/docs/13.x/validation#available-validation-rules
2 changes: 1 addition & 1 deletion content/collections/tags/vite-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ If you need to, you can also specify a custom build directory.
```
::

When using these options, please make sure to also adjust your `vite.config.js` file. More about advanced customization can be found in [Laravel's Vite docs](https://laravel.com/docs/12.x/vite#advanced-customization).
When using these options, please make sure to also adjust your `vite.config.js` file. More about advanced customization can be found in [Laravel's Vite docs](https://laravel.com/docs/13.x/vite#advanced-customization).
2 changes: 1 addition & 1 deletion content/collections/tags/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Additionally, you can set custom locations for the build directory and hot file.
```
::

When using these options, please make sure to also adjust your `vite.config.js` file. More about advanced customization can be found in [Laravel's Vite docs](https://laravel.com/docs/12.x/vite#advanced-customization).
When using these options, please make sure to also adjust your `vite.config.js` file. More about advanced customization can be found in [Laravel's Vite docs](https://laravel.com/docs/13.x/vite#advanced-customization).

## Processing Static Assets With Vite

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: 853b6690-c1fc-46bc-b865-e61a33d14563
title: 'Building your own Entries Repository'
intro: 'Statamic stores your content in "flat files" by default, but its data layer is completely driver-driven – giving you the ability to store content **anywhere**. In this article we''ll show you how to store entries in a database with [Laravel Eloquent](https://laravel.com/docs/12.x/eloquent).'
intro: 'Statamic stores your content in "flat files" by default, but its data layer is completely driver-driven – giving you the ability to store content **anywhere**. In this article we''ll show you how to store entries in a database with [Laravel Eloquent](https://laravel.com/docs/13.x/eloquent).'
template: page
categories:
- development
Expand Down Expand Up @@ -244,7 +244,7 @@ public function register()

## The Model

Since we're using Eloquent, we need a [model](https://laravel.com/docs/12.x/eloquent#generating-model-classes). Let's set one up.
Since we're using Eloquent, we need a [model](https://laravel.com/docs/13.x/eloquent#generating-model-classes). Let's set one up.

``` php
<?php
Expand Down
2 changes: 1 addition & 1 deletion content/collections/tips/storing-users-in-a-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Statamic comes with an Eloquent driver to make the transition as seamless as pos
$table->foreignUuid('user_id')->nullable()->change(); // [tl! ++] [tl! **]
}); // [tl! ++] [tl! **]
```
- If you've customized your `user` blueprint, edit the migration so it includes those fields as columns. You can also create a new migration file by running `php artisan make:migration`. You'll have to manually edit the migration file to reflect your changes. Read up on [Laravel database migrations here](https://laravel.com/docs/12.x/migrations).
- If you've customized your `user` blueprint, edit the migration so it includes those fields as columns. You can also create a new migration file by running `php artisan make:migration`. You'll have to manually edit the migration file to reflect your changes. Read up on [Laravel database migrations here](https://laravel.com/docs/13.x/migrations).
```php
$table->string('some_field');
```
Expand Down