Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.6...v0.1.7
Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.5...v0.1.6
Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.4...v0.1.5
Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.3...v0.1.4
Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.2...v0.1.3
Full Changelog: https://github.com/joshcirre/duo/compare/v0.1.1...v0.1.2
First public release of Duo - a local-first IndexedDB syncing package for Laravel and Livewire applications.
This release includes:
joshcirre/duo - Laravel service provider and traits[@joshcirre](https://github.com/joshcirre)/vite-plugin-duo - Vite plugin and client library[@duoMeta](https://github.com/duoMeta) directive includes CSRF token automaticallycomposer require joshcirre/duo
npm install -D [@joshcirre](https://github.com/joshcirre)/vite-plugin-duo
Syncable trait to your models:use JoshCirre\Duo\Syncable;
class Todo extends Model
{
use Syncable;
}
WithDuo trait to your Livewire/Volt components:use JoshCirre\Duo\WithDuo;
new class extends Component {
use WithDuo;
// ...
}
[@duoMeta](https://github.com/duoMeta) to your layout:<head>
[@vite](https://github.com/vite)(['resources/css/app.css', 'resources/js/app.js'])
[@duoMeta](https://github.com/duoMeta)
</head>
import duo from '[@joshcirre](https://github.com/joshcirre)/vite-plugin-duo';
export default defineConfig({
plugins: [duo()],
});
That's it! Your app now has local-first syncing with offline support.
Built with:
MIT License - see LICENSE for details.
Note: This is a 0.x release, meaning the API may change before 1.0. Please report any issues on GitHub.
How can I help you explore Laravel packages today?