Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 627ecc4

Browse files
committed
6.0.0
1 parent a258de6 commit 627ecc4

File tree

5 files changed

+36
-9
lines changed

5 files changed

+36
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ All notable changes to `laravel-form-components` will be documented in this file
99
### Updated
1010
- Update asset versions in the config
1111
- Reference all `form-components` components using `<x-form-components::>` instead of `<x-dynamic-component>`
12+
- Add better support for multi `custom-select` in non-livewire forms ([#34](https://github.com/rawilk/laravel-form-components/issues/34))
1213

1314
### Changed
1415
- Switch from rollup to laravel-mix for compiling package JavaScript
1516

1617
### Breaking changes
17-
- Increase minimum Laravel version to `8.58`
18+
- Increase minimum Laravel version to `8.56`
19+
- Remove ability to override component views in the config (in favor of just publishing the package's views)
1820

1921
## 5.1.0 - 2021-07-26
2022
### Added

docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v5
2+
title: v6
33
slogan: A set of Blade components for TailwindCSS forms.
44
githubUrl: https://github.com/rawilk/laravel-form-components
55
branch: main

docs/installation.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Libraries are only loaded for components that are enabled through the `component
6565

6666
## Views
6767

68-
You may override the views, either by using your own views and specifying them in the config, or by publishing the package's views:
68+
You may override the views, by publishing the package's views:
6969

7070
```bash
7171
php artisan fc:publish --views
@@ -98,10 +98,20 @@ only load the components you need in your app for performance reasons. To do so,
9898
first [publish the config file](#configuration), then remove the components
9999
you don't need from the `components` settings.
100100

101-
You can also choose to use different classes and views for components. This allows you
101+
You can also choose to use different classes for components. This allows you
102102
to either extend or completely change the component's functionality by using a custom class
103103
and/or view of your own.
104104

105+
### Component Namespace
106+
New in v6, the package also declares a `form-components` blade component namespace. This means that
107+
for any component you may also use the `<x-form-components::component-name>` syntax. For the `input`
108+
component, you would use `<x-form-components::inputs.input />`. If you choose to render the components
109+
using this method, you can safely remove the component alias from the config, however there are two caveats to this:
110+
111+
1. You may not be able to override the component class definition any more if you remove the alias from the config.
112+
2. Some components have an array of configuration options attached to their alias. Those arrays are referenced
113+
by the component, so these aliases should not be removed or renamed.
114+
105115
## Component JavaScript
106116

107117
Some components, such as the [custom select component](/docs/laravel-form-components/{version}/selects/custom-select), require custom

docs/requirements.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ sort: 2
66
## General Requirements
77

88
- PHP **8.0** or greater
9-
- Laravel **8.0** or greater
9+
- Laravel **8.56** or greater
1010
- TailwindUI for styling
1111
- Alpine.js
1212
- Popper.js (when using components like custom-select)
13-
- Blade Heroicons (can easily swap for icon libraries)
13+
- Blade Heroicons (can easily swap for other icon libraries)
1414

1515
## Version Matrix
1616

17-
| Laravel | Minimum Version |
18-
| ------- | --------------- |
19-
| 8.0 | 1.0.0 |
17+
| Laravel | Minimum Version | Maximum Version |
18+
| ------- | --------------- | --- |
19+
| 8.0 - 8.55 | 1.0.0 | 5.1.0 |
20+
| 8.56 | 6.0.0 | |

docs/upgrade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ title: Upgrade
33
sort: 4
44
---
55

6+
## Upgrading from v5 to v6
7+
8+
### Laravel Version
9+
v6 of laravel-form-components now requires a minimum Laravel version of `8.56`. Be sure to update your project to at least that version.
10+
11+
### Overriding component views
12+
In v6, you must publish any package views you want to override instead of specifying a different view in the config. This was done to help
13+
simplify the package config and how the base `BladeComponent` class determines the view to render. You are still free to override any
14+
component classes in the config, however.
15+
16+
### New Component Namespace
17+
Not a breaking change, but the package now defines the `form-components` namespace in addition to providing aliases for each component
18+
in the config. You will now be able to reference components either as `<x-form>` or as `<x-form-components::form>` if you choose to.
19+
620
## Upgrading from v4 to v5
721

822
### Alpine upgrade

0 commit comments

Comments
 (0)