Skip to content

Commit

Permalink
Support Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbearman committed Mar 12, 2024
1 parent df13ada commit 0deba1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ The package currently supports `Contacts`, `Custom Fields`, `Custom Fields Value

- [Laravel Support](#laravel-support)
- [Installation](#installation)
- [Usage](#usage)
- [Migrating from Label84/ActiveCampaign](#migrating-from-label84activecampaign)
- [Usage](#usage)
- [Examples](#examples)
- [Contacts](#contacts)
- [Custom Fields](#custom-fields)
- [Custom Field Values](#custom-field-values)
- [Tags](#tags)
- [Tests](#tests)
- [Code Quality](#code-quality)
- [License](#license)

## Laravel Support

| Version | Release |
|---------|---------|
| 10.x | 1.3 |
| 11.x | 1.3.1 |

## Installation

Expand Down Expand Up @@ -59,7 +60,6 @@ Access via facade:
```php
use RossBearman\ActiveCampaign\Facades\ActiveCampaign;

// Usage
$contact = ActiveCampaign::contacts()->get(1);
```

Expand All @@ -68,7 +68,6 @@ Resolve directly out of the container:
```php
use RossBearman\ActiveCampaign\ActiveCampaign;

// Usage
$contact = resolve(ActiveCampaign::class)->contacts()->get(1);
```

Expand All @@ -81,7 +80,6 @@ class ContactController extends Controller
{
public function __construct(private readonly ActiveCampaign $activeCampaign) { }

// Usage
$this->activeCampaign->contacts()->get(1);
}
```
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0"
"illuminate/support": "^10.0 | ^11.0",
"illuminate/http": "^10.0 | ^11.0"
},
"require-dev": {
"larastan/larastan": "^2.8",
Expand Down

0 comments on commit 0deba1b

Please sign in to comment.