-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix `UpdatedAtTest` * fix `CreatedAtTest` * fix `TimestampsTest` * fix `Sidebar` * update docs * create UPGRADE.md * formatting * update README.md * WIP * Update README.md --------- Co-authored-by: Ralph J. Smit <[email protected]>
- Loading branch information
1 parent
431373d
commit cee5683
Showing
8 changed files
with
75 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Upgrade | ||
|
||
## From 1.x to 2.x | ||
The `Sidebar::make()` method's signature was changed. Previously it accepted a `$form` parameter and returned a form. Now you can just use the `Sidebar::make()` method inside any form schema: | ||
|
||
```diff | ||
-public static function form(Form $form): Form | ||
-{ | ||
- return Sidebar::make($form)->schema([ | ||
- // Main components | ||
- ], [ | ||
- // Sidebar components | ||
- ]); | ||
-} | ||
+public static function form(Form $form): Form | ||
+{ | ||
+ return $form->schema([ | ||
+ Sidebar::make([ | ||
+ // Main components | ||
+ ], [ | ||
+ // Sidebar components | ||
+ ]), | ||
+ ]); | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters