Skip to content

Commit b1c4f45

Browse files
authored
Merge pull request #74 from TappNetwork/add_filament5_support
Add Filament 5 support
2 parents 77dc8e3 + 4f1daf8 commit b1c4f45

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

.github/workflows/update-changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818
with:
19-
ref: main
19+
ref: 4.x
2020

2121
- name: Update Changelog
2222
uses: stefanzweifel/changelog-updater-action@v1
@@ -27,6 +27,6 @@ jobs:
2727
- name: Commit updated CHANGELOG
2828
uses: stefanzweifel/git-auto-commit-action@v5
2929
with:
30-
branch: main
30+
branch: 4.x
3131
commit_message: Update CHANGELOG
3232
file_pattern: CHANGELOG.md

README.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Filament Google Autcomplete Field
1+
# Filament Google Autocomplete Field
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/tapp/filament-google-autocomplete-field.svg?style=flat-square)](https://packagist.org/packages/tapp/filament-google-autocomplete-field)
44
![GitHub Tests Action Status](https://github.com/TappNetwork/filament-google-autocomplete-field/actions/workflows/run-tests.yml/badge.svg)
@@ -12,23 +12,15 @@ This plugin provides an address autocomplete using [Google Place autocomplete AP
1212
1313
## Version Compatibility
1414

15-
Filament | Filament Google Autocomplete Field
16-
:---------|:----------------------------------
17-
3.x | 1.x
18-
4.x | 4.x
15+
Filament | Filament Google Autocomplete Field | Documentation
16+
:--------|:-----------------------------------|:--------------
17+
4.x/5.x | 4.x | Current
18+
3.x | 1.x | [Check the docs](https://github.com/TappNetwork/filament-google-autocomplete-field/tree/1.x)
1919

2020
## Installation
2121

2222
You can install the package via Composer:
2323

24-
### For Filament 3
25-
26-
```bash
27-
composer require tapp/filament-google-autocomplete-field:"^1.0"
28-
```
29-
30-
### For Filament 4
31-
3224
```bash
3325
composer require tapp/filament-google-autocomplete-field:"^4.0"
3426
```
@@ -74,15 +66,15 @@ GOOGLE_PLACES_API_KEY=your_google_place_api_key_here
7466

7567
## Appareance
7668

77-
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/autocomplete02.png)
69+
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/autocomplete02.png)
7870

79-
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/autocomplete03.png)
71+
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/autocomplete03.png)
8072

81-
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/autocomplete04.png)
73+
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/autocomplete04.png)
8274

83-
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/autocomplete05.png)
75+
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/autocomplete05.png)
8476

85-
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/autocomplete06.png)
77+
![Filament Google Autcomplete Field](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/autocomplete06.png)
8678

8779
## Usage
8880

@@ -131,7 +123,7 @@ Forms\Components\Fieldset::make('Google Search')
131123
]),
132124
```
133125

134-
![Fieldset Layout](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/fieldset_layout.png)
126+
![Fieldset Layout](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/fieldset_layout.png)
135127

136128
```php
137129
Forms\Components\Section::make('Google Search')
@@ -141,7 +133,7 @@ Forms\Components\Section::make('Google Search')
141133
]),
142134
```
143135

144-
![Section Layout](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/section_layout.png)
136+
![Section Layout](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/section_layout.png)
145137

146138
## Places API (original) and Places API (New)
147139

@@ -351,7 +343,7 @@ GoogleAutocomplete::make('google_search')
351343
]),
352344
```
353345

354-
![Example with modified label, autocompleteLabel, and autocompletePlaceholder](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/main/docs/label_placeholder.jpg)
346+
![Example with modified label, autocompleteLabel, and autocompletePlaceholder](https://raw.githubusercontent.com/TappNetwork/filament-google-autocomplete-field/4.x/docs/label_placeholder.jpg)
355347

356348
## Google API Options
357349

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require": {
2424
"php": "^8.2",
2525
"spatie/laravel-package-tools": "^1.16",
26-
"filament/filament": "^4.0",
26+
"filament/filament": "^5.0|^4.0",
2727
"illuminate/contracts": "^10.0||^11.0||^12.0",
2828
"skagarwal/google-places-api": "^3.0"
2929
},

0 commit comments

Comments
 (0)