PHPackages                             redbastie/laravel-livewire-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. redbastie/laravel-livewire-helpers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

redbastie/laravel-livewire-helpers
==================================

A few useful helpers for Laravel Livewire.

1.0.3(5y ago)1581MITPHP

Since Jan 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/redbastie/laravel-livewire-helpers)[ Packagist](https://packagist.org/packages/redbastie/laravel-livewire-helpers)[ Docs](https://github.com/redbastie/laravel-livewire-helpers)[ RSS](/packages/redbastie-laravel-livewire-helpers/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (5)Used By (1)

NO LONGER MAINTAINED
====================

[](#no-longer-maintained)

This package is no longer maintained. Please consider my latest package here:

---

Laravel Livewire Helpers
========================

[](#laravel-livewire-helpers)

A few useful helpers for Laravel &amp; Livewire.

Installation
------------

[](#installation)

Install via composer:

```
composer require redbastie/laravel-livewire-helpers

```

WithData
--------

[](#withdata)

This trait allows you to use a `$data` array property inside your component so that you don't need to create a separate property for every single form input.

Modeling data:

```

@error('email'){{ $message }}@enderror

```

Validating data:

```
$this->validateData([
    'email' => ['required', 'email'],
]);

```

Getting data (null safe, uses dot notation for nested arrays):

```
$this->data('email');

```

WithInfiniteScroll
------------------

[](#withinfinitescroll)

This trait implements infinite scrolling in your component. Useful for allowing the user to endlessly scroll through a list of queried models. This trait requires some setup.

First, require `infinite-scroll` in your `resources/app.js` file (and make sure to `npm run` it if not already `watch`ing):

```
require('./bootstrap');
require('../../vendor/redbastie/laravel-livewire-helpers/resources/js/infinite-scroll');

```

In your component, use `$this->query()->paginate($this->perPage)` for the model results and pass the `infiniteScroll` boolean to the view:

```
public function render()
{
    return view('livewire.vehicles', [
        'vehicles' => $this->query()->paginate($this->perPage),
        'infiniteScroll' => $this->infiniteScroll(),
    ]);
}

```

Your component needs to implement a `query()` method, which returns a model builder query:

```
public function query()
{
    return Vehicle::query()->orderBy('id');
}

```

Finally, include `infinite-scroll` at the bottom of your view:

```
@include('laravel-livewire-helpers::infinite-scroll')

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

1992d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64050101?v=4)[redbastie](/maintainers/redbastie)[@redbastie](https://github.com/redbastie)

---

Top Contributors

[![redbastie](https://avatars.githubusercontent.com/u/64050101?v=4)](https://github.com/redbastie "redbastie (6 commits)")

### Embed Badge

![Health badge](/badges/redbastie-laravel-livewire-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/redbastie-laravel-livewire-helpers/health.svg)](https://phpackages.com/packages/redbastie-laravel-livewire-helpers)
```

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21259.6k](/packages/ramonrietdijk-livewire-tables)[noerd/noerd

101.4k6](/packages/noerd-noerd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
