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

Commit a123dbd

Browse files
rawilkactions-user
authored andcommitted
Prettified Code!
1 parent 627ecc4 commit a123dbd

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

docs/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,15 @@ to either extend or completely change the component's functionality by using a c
103103
and/or view of your own.
104104

105105
### Component Namespace
106+
106107
New in v6, the package also declares a `form-components` blade component namespace. This means that
107108
for any component you may also use the `<x-form-components::component-name>` syntax. For the `input`
108109
component, you would use `<x-form-components::inputs.input />`. If you choose to render the components
109110
using this method, you can safely remove the component alias from the config, however there are two caveats to this:
110111

111112
1. You may not be able to override the component class definition any more if you remove the alias from the config.
112113
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+
by the component, so these aliases should not be removed or renamed.
114115

115116
## Component JavaScript
116117

docs/requirements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 | |

docs/upgrade.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ sort: 4
66
## Upgrading from v5 to v6
77

88
### Laravel Version
9+
910
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.
1011

1112
### Overriding component views
13+
1214
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
1315
simplify the package config and how the base `BladeComponent` class determines the view to render. You are still free to override any
1416
component classes in the config, however.
1517

1618
### New Component Namespace
19+
1720
Not a breaking change, but the package now defines the `form-components` namespace in addition to providing aliases for each component
1821
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.
1922

0 commit comments

Comments
 (0)