diff --git a/content/collections/modifiers/to_qs.md b/content/collections/modifiers/to_qs.md index 52d5a1f66..9e6dd3378 100644 --- a/content/collections/modifiers/to_qs.md +++ b/content/collections/modifiers/to_qs.md @@ -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 = [ diff --git a/content/collections/modifiers/where.md b/content/collections/modifiers/where.md index dc185ce6a..29f35f2e8 100644 --- a/content/collections/modifiers/where.md +++ b/content/collections/modifiers/where.md @@ -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. ```

I hate...

diff --git a/content/collections/pages/5-to-6.md b/content/collections/pages/5-to-6.md index fcdc37b48..be096be3b 100644 --- a/content/collections/pages/5-to-6.md +++ b/content/collections/pages/5-to-6.md @@ -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 🤘). diff --git a/content/collections/pages/blueprints.md b/content/collections/pages/blueprints.md index b45167099..19a85447c 100644 --- a/content/collections/pages/blueprints.md +++ b/content/collections/pages/blueprints.md @@ -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). diff --git a/content/collections/pages/content-queries.md b/content/collections/pages/content-queries.md index dfba4e1f4..fac8a8364 100644 --- a/content/collections/pages/content-queries.md +++ b/content/collections/pages/content-queries.md @@ -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)! ::: @@ -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 @@ -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 @@ -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 diff --git a/content/collections/pages/docker.md b/content/collections/pages/docker.md index 9e7970e51..41877e691 100644 --- a/content/collections/pages/docker.md +++ b/content/collections/pages/docker.md @@ -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. @@ -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! diff --git a/content/collections/pages/fields.md b/content/collections/pages/fields.md index 8a87d81e6..259320c84 100644 --- a/content/collections/pages/fields.md +++ b/content/collections/pages/fields.md @@ -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: diff --git a/content/collections/pages/forms.md b/content/collections/pages/forms.md index 2855c0a7c..bef80772f 100644 --- a/content/collections/pages/forms.md +++ b/content/collections/pages/forms.md @@ -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 @@ -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. diff --git a/content/collections/pages/from-wordpress-to-statamic.md b/content/collections/pages/from-wordpress-to-statamic.md index f54e207d0..5ecca55a6 100644 --- a/content/collections/pages/from-wordpress-to-statamic.md +++ b/content/collections/pages/from-wordpress-to-statamic.md @@ -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 diff --git a/content/collections/pages/hooks.md b/content/collections/pages/hooks.md index 4ee266f7a..be1318e1a 100644 --- a/content/collections/pages/hooks.md +++ b/content/collections/pages/hooks.md @@ -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 diff --git a/content/collections/pages/image-manipulation.md b/content/collections/pages/image-manipulation.md index 349b99978..887fecea4 100644 --- a/content/collections/pages/image-manipulation.md +++ b/content/collections/pages/image-manipulation.md @@ -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' => [ diff --git a/content/collections/pages/laravel-cloud.md b/content/collections/pages/laravel-cloud.md index 52a67dbba..ee4e5ae1f 100644 --- a/content/collections/pages/laravel-cloud.md +++ b/content/collections/pages/laravel-cloud.md @@ -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). \ No newline at end of file +You can find more information about session drivers on the [Laravel documentation](https://laravel.com/docs/13.x/session#introduction). \ No newline at end of file diff --git a/content/collections/pages/overview.2.md b/content/collections/pages/overview.2.md index 724ee5216..33f6d831e 100644 --- a/content/collections/pages/overview.2.md +++ b/content/collections/pages/overview.2.md @@ -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. diff --git a/content/collections/pages/requirements.md b/content/collections/pages/requirements.md index 78d250875..1de9d7e23 100644 --- a/content/collections/pages/requirements.md +++ b/content/collections/pages/requirements.md @@ -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 diff --git a/content/collections/pages/scheduling.md b/content/collections/pages/scheduling.md index 09f72321b..9be6c7783 100644 --- a/content/collections/pages/scheduling.md +++ b/content/collections/pages/scheduling.md @@ -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 @@ -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 @@ -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) diff --git a/content/collections/pages/sites-api.md b/content/collections/pages/sites-api.md index d618e5895..2bea326e3 100644 --- a/content/collections/pages/sites-api.md +++ b/content/collections/pages/sites-api.md @@ -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 diff --git a/content/collections/pages/testing.md b/content/collections/pages/testing.md index 8bc4d2bb4..0f6f6964d 100644 --- a/content/collections/pages/testing.md +++ b/content/collections/pages/testing.md @@ -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 diff --git a/content/collections/pages/users.md b/content/collections/pages/users.md index 1d13b1cdc..7cd3e1327 100644 --- a/content/collections/pages/users.md +++ b/content/collections/pages/users.md @@ -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} diff --git a/content/collections/pages/validation.md b/content/collections/pages/validation.md index d25fb4cde..07169f7e6 100644 --- a/content/collections/pages/validation.md +++ b/content/collections/pages/validation.md @@ -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: @@ -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 diff --git a/content/collections/tags/vite-content.md b/content/collections/tags/vite-content.md index afe3c47bc..bbf715de7 100644 --- a/content/collections/tags/vite-content.md +++ b/content/collections/tags/vite-content.md @@ -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). diff --git a/content/collections/tags/vite.md b/content/collections/tags/vite.md index 6636e39ec..5ac889077 100644 --- a/content/collections/tags/vite.md +++ b/content/collections/tags/vite.md @@ -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 diff --git a/content/collections/tips/building-your-own-entries-repository.md b/content/collections/tips/building-your-own-entries-repository.md index 512725681..93eae073c 100644 --- a/content/collections/tips/building-your-own-entries-repository.md +++ b/content/collections/tips/building-your-own-entries-repository.md @@ -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 @@ -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 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'); ```