Skip to content

Commit 70673c9

Browse files
committed
Add buttons and html plugin notes.
1 parent 0564825 commit 70673c9

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

upgrade.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,30 @@
22

33
<a name="v6-to-v7"></a>
44
## Upgrading from v6.x to v7.x
5-
- composer require yajra/laravel-datatables-oracle:^7.0
6-
- composer require yajra/laravel-datatables-buttons:^1.0
7-
- php artisan vendor:publish --tag=datatables --force
8-
- php artisan vendor:publish --tag=datatables-buttons --force
5+
To upgrade Laravel Datatable from version 6.x to version 7.x:
6+
7+
```sh
8+
composer require yajra/laravel-datatables-oracle:^7.0
9+
php artisan vendor:publish --tag=datatables --force
10+
```
11+
12+
### Service Approach
13+
Service class is now extracted to own plugin, `Buttons Plugin`. If you are using the service approach, you need to perform the following:
14+
15+
```sh
16+
composer require yajra/laravel-datatables-buttons:^1.0
17+
php artisan vendor:publish --tag=datatables-buttons --force
18+
```
19+
20+
### Html Builder
21+
HTML builder is now extracted to own plugin, If you are using Datatables html builder, you need to perform the following:
22+
> {info} HTML Builder plugin is a prerequisite of Buttons plugin. You can optionally skip this part if already installed the Buttons plugin.
23+
24+
```sh
25+
composer require yajra/laravel-datatables-html:^1.0
26+
php artisan vendor:publish --tag=datatables-html --force
27+
```
28+
929

1030
### XSS Protection
1131
All columns are now escaped by default to protect us from XSS attack. To allow columns to have an html content, use `rawColumns` api.

0 commit comments

Comments
 (0)