Urgent.News

What's breaking now, across thousands of outlets.

Tech

Building a Laravel-First Data Table with Inertia.js and Vue 3

How we approached server-side tables, searching, sorting, pagination, actions, and table state without duplicating logic between Laravel and Vue. If you've built a Laravel application with Inertia.js and Vue, you've probably built a data table more than once. At first, it looks simple: Get some records Display them in Vue Add pagination Add sorting Add search Then the requirements start growing.…

When constructing data tables in Laravel applications using Inertia.js and Vue 3, it's essential to keep the table logic close to Laravel while allowing Vue to focus on rendering and user interaction. This approach helps avoid duplicating logic between the two frameworks. The basic flow involves the Laravel Table Class handling the query and table configuration, while Vue receives the resulting data to render it and manage interactions.

The Laravel side defines columns, query, and table configuration, while Vue focuses on the UI. For example, a UsersTable class extends ZonTable, with methods for defining the query and columns. Inertia.js serves as a middle ground, allowing the use of Vue for the interface while Laravel continues handling queries, authorizations, sorting, pagination, and data preparation.

The current Vue version of Zonvoir Table includes features like searching, sorting, pagination, typed columns, column visibility, row actions, bulk actions, Excel exports, URL-synced state, and customizable UI. The team is focusing on the Laravel + Inertia.js + Vue 3 ecosystem, avoiding reinventing every table feature. Instead, they aim to provide a Laravel-first data table solution for applications built with Inertia.js and Vue.

The package is still actively developing, and feedback from Laravel and Vue developers is welcome. Developers can explore the project on the website, documentation, and GitHub repositories. By addressing the specific needs of applications built with these frameworks, Zonvoir Table seeks to offer an efficient and reusable solution for data tables.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your first HTTPS certificate renewal: issue, install, check

Your hosting dashboard says that a new certificate is ready. Does that mean your visitors are using it? The answer depends on where HTTPS is managed.

  • Obtain new HTTPS certificate before old one expires
  • Configure HTTPS service with new certificate
  • Verify client receives updated certificate

JavaScript SEO: How to Make Sure Google Can Render, Crawl, and Index Your Site

Modern websites rely heavily on JavaScript frameworks such as React, Vue, and Angular. They create fast, app-like experiences, but they can also hide content from search engines if built carelessly.

  • Google processes JavaScript pages in three stages: crawling, rendering, and indexing
  • Server-side rendering sends full HTML to crawlers and users immediately
  • Best practices include serving critical content in initial HTML and using real anchor tags

How to Build a Zero-Cost Automated Store Using a Telegram Bot

Many developers overcomplicate e-commerce. They look at Stripe integrations, massive Shopify storefronts, and server infrastructure.

  • Zero-cost automated store built with Telegram bot
  • Python-telegram-bot library handles core functionality
  • Server setup using $5/mo DigitalOcean Droplet

More from Thursday 8 October →