Skip to content

Commit 602a4a6

Browse files
committed
Upgrade to use Inertia 2
1 parent 0a00a6d commit 602a4a6

File tree

108 files changed

+329
-7262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+329
-7262
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Inertia.js Tables for Laravel Query Builder
22

3+
This package provides a set of components to build Inertia.js tables using [Spatie's Laravel Query Builder](https://github.com/spatie/laravel-query-builder).
4+
5+
## Version Compatibility
6+
7+
| Package Version | Inertia.js Version | Laravel Version |
8+
|-----------------|-------------------|-----------------|
9+
| 2.x | 0.x | 8.x, 9.x, 10.x |
10+
| 3.x | 1.x, 2.x | 8.x, 9.x, 10.x |
11+
12+
## Upgrading from v2.x to v3.x
13+
14+
Version 3.x of this package supports Inertia.js 2.0. If you're upgrading from v2.x, you'll need to:
15+
16+
1. Update your dependencies:
17+
```bash
18+
npm remove @inertiajs/inertia @inertiajs/inertia-vue3 @inertiajs/progress
19+
npm install @inertiajs/vue3
20+
```
21+
22+
2. Update your imports:
23+
- Replace `@inertiajs/inertia-vue3` with `@inertiajs/vue3`
24+
- Replace `@inertiajs/inertia` with `@inertiajs/vue3`
25+
- Replace `@inertiajs/progress` with the progress module from `@inertiajs/vue3`
26+
27+
3. Update your Inertia setup:
28+
- The `setup` function now receives `App` instead of `app`
29+
- Use the `router` and `usePage()` instead of `$inertia` and `$inertia.page`
30+
- Update event listeners from `inertia:success` to `success`
31+
32+
For more details on upgrading to Inertia.js 2.0, see the [official upgrade guide](https://inertiajs.com/upgrade-guide).
33+
34+
# Inertia.js Tables for Laravel Query Builder
35+
336
[![Latest Version on NPM](https://img.shields.io/npm/v/@protonemedia/inertiajs-tables-laravel-query-builder.svg?style=flat-square)](https://npmjs.com/package/@protonemedia/inertiajs-tables-laravel-query-builder)
437
[![npm](https://img.shields.io/npm/dt/@protonemedia/inertiajs-tables-laravel-query-builder.svg?style=flat-square)](https://www.npmjs.com/package/@protonemedia/inertiajs-tables-laravel-query-builder)
538
[![Latest Version on Packagist](https://img.shields.io/packagist/v/protonemedia/inertiajs-tables-laravel-query-builder.svg?style=flat-square)](https://packagist.org/packages/protonemedia/inertiajs-tables-laravel-query-builder)

app/.editorconfig

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/.env.example

Lines changed: 0 additions & 53 deletions
This file was deleted.

app/.gitattributes

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/.gitignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/app/Console/Kernel.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/app/Exceptions/Handler.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

app/app/Http/Kernel.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

app/app/Http/Middleware/Authenticate.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/app/Http/Middleware/EncryptCookies.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)