You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,10 +27,10 @@ Laravel package to create beautiful common views like tables using only PHP code
26
27
-[Roadmap](#roadmap)
27
28
28
29
# Version compatibility
29
-
|Laravel views|Livewire|Laravel|
30
-
|-|-|-|
31
-
|2.x|2.x|7.x, 8.x|
32
-
|1.x|1.x|5.x, 6.x|
30
+
|Laravel views|Alpine|Livewire|Laravel|
31
+
|-|-|-|-|
32
+
|2.x|2.8.x, 3.x.x|2.x|7.x, 8.x|
33
+
|1.x|2.8.x|1.x|5.x, 6.x|
33
34
34
35
# Installation and basic usage
35
36
@@ -179,11 +180,21 @@ Here's the plan for what's coming:
179
180
180
181
## Upgrade guide
181
182
### From 2.2 to 2.3
182
-
- Clear your cached views `php artisan view:clear` since some of the internal components changed.
183
-
- Update assets
184
-
- Update components.
185
-
- Update config-file.
186
-
- Update the renderIf() function in your action classes as follows:
183
+
**Cached views**
184
+
185
+
The blade directives have changed, you need to clear the cached views with `php artisan view:clear`
186
+
187
+
**Public assets**
188
+
189
+
The main assets (JS and CSS files) have changed, you need to publish the public assets again with `php artisan vendor:publish --tag=public --provider='LaravelViews\LaravelViewsServiceProvider' --force`
190
+
191
+
**Publish blade componentes**
192
+
193
+
Some of the internal components have changed, if you have published these components before to customize them, you will not have them up to date, unfourtunately you need to publish them again with `php artisan vendor:publish --tag=views --provider='LaravelViews\LaravelViewsServiceProvider'` and customize them as you need.
194
+
195
+
**Method `renderIf()` in actions**
196
+
197
+
Update the renderIf() function in your action classes adding a new `$view` parameter as follows:
187
198
```php
188
199
<?php
189
200
@@ -200,4 +211,21 @@ Here's the plan for what's coming:
200
211
}
201
212
}
202
213
```
203
-
-**(Optional)**, if your `repository` methods are returning the query object without any query applied like `User::query()`, you can define a `protected $model = User::class;` instead, this is the default behavior now, the `repository` method is still working so you don't need to change anything if you don't want to.
214
+
**Publish config file (Optional)**
215
+
216
+
Some new variants have been added to the config file, if you have published the config file before, you could publish it again so you can customize the new variants, this doesn't affect anything at all since the new variants will be taken from the default config file.
217
+
218
+
**Remove `repository` method from your views (Optional)**
219
+
If your `repository` methods are returning a query object without any query applied like `User::query()`, you can define a `protected $model = User::class;` instead, this is the default behavior now, the `repository` method is still working so you don't need to change anything if you don't want to.
0 commit comments