Skip to content

Commit

Permalink
Merge branch 'main' of github.com:envor/laravel-datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo committed Oct 5, 2024
2 parents dfc00a0 + 66b3b3f commit 426da53
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to `laravel-datastore` will be documented in this file.

## v2.0.0 - 2024-10-05

### What's Changed

* Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/envor/laravel-datastore/pull/15
* Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/envor/laravel-datastore/pull/17
* Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in https://github.com/envor/laravel-datastore/pull/18
* Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/envor/laravel-datastore/pull/25
* main by @inmanturbo in https://github.com/envor/laravel-datastore/pull/28

**Full Changelog**: https://github.com/envor/laravel-datastore/compare/v1.2.8...v2.0.0

## v1.2.19 - 2024-08-02

### What's Changed
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@

A simple strategy for handling dynamic databases of varying types

## Upgrade Guide
Upgrading from 1.x to 2.x.

2x does not push middleware by default, or configure context by default. To continue using as before add the following to your project's .env file:

```ini
DATASTORE_PUSH_CONTEXT_MIDDLEWARE=true
AUTOCONFIGURE_DEFAULT_CONTEXT=true
```

2x does not require `envor/platform` by default, Next you will need to manually require `envor/platform`

```bash
composer require envor/platform
```

## Installation

You can install the package via composer:
Expand Down Expand Up @@ -34,6 +50,8 @@ This is the contents of the published config file:
return [
'model' => \Envor\Datastore\Models\Datastore::class,
'create_databases' => env('DATASTORE_CREATE_DATABASES', true),
'push_middleware' => env('DATASTORE_PUSH_CONTEXT_MIDDLEWARE', false),
'autoconfigure_default_context' => env('AUTOCONFIGURE_DEFAULT_CONTEXT', false),
];
```

Expand Down

0 comments on commit 426da53

Please sign in to comment.