Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
docs: upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
planetscale-actions-bot committed Apr 11, 2024
1 parent c76e6f2 commit 557abb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/laravel-boost-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date: '2022-11-15'

## How to use PlanetScale Boost in a Laravel application

To enable caching for your connection, you need to set the session variable `boost_query_caching` to `true`. We can do this by adding the following database connection resolver to your `AppServiceProvider`.
To enable caching for your connection, you need to set the session variable `boost_cached_queries` to `true`. We can do this by adding the following database connection resolver to your `AppServiceProvider`.

```php
<?php
Expand All @@ -26,7 +26,7 @@ class AppServiceProvider extends ServiceProvider

try {
if (Arr::get($config, 'boost_cached_queries') === true) {
$connection->statement('SET GLOBAL boost_cached_queries = 1');
$connection->statement('SET @@boost_cached_queries = true');
}
} catch (\Exception $e) {
// Nothing to do here.
Expand Down

0 comments on commit 557abb3

Please sign in to comment.