This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,15 @@ to either extend or completely change the component's functionality by using a c
103103and/or view of your own.
104104
105105### Component Namespace
106+
106107New in v6, the package also declares a ` form-components ` blade component namespace. This means that
107108for any component you may also use the ` <x-form-components::component-name> ` syntax. For the ` input `
108109component, you would use ` <x-form-components::inputs.input /> ` . If you choose to render the components
109110using this method, you can safely remove the component alias from the config, however there are two caveats to this:
110111
1111121 . You may not be able to override the component class definition any more if you remove the alias from the config.
1121132 . 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+ by the component, so these aliases should not be removed or renamed.
114115
115116## Component JavaScript
116117
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ sort: 2
1414
1515## Version Matrix
1616
17- | Laravel | Minimum Version | Maximum Version |
18- | ------- | --------------- | --- |
19- | 8.0 - 8.55 | 1.0.0 | 5.1.0 |
20- | 8.56 | 6.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 | |
Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ sort: 4
66## Upgrading from v5 to v6
77
88### Laravel Version
9+
910v6 of laravel-form-components now requires a minimum Laravel version of ` 8.56 ` . Be sure to update your project to at least that version.
1011
1112### Overriding component views
13+
1214In 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
1315simplify the package config and how the base ` BladeComponent ` class determines the view to render. You are still free to override any
1416component classes in the config, however.
1517
1618### New Component Namespace
19+
1720Not a breaking change, but the package now defines the ` form-components ` namespace in addition to providing aliases for each component
1821in the config. You will now be able to reference components either as ` <x-form> ` or as ` <x-form-components::form> ` if you choose to.
1922
You can’t perform that action at this time.
0 commit comments