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. redbastie/laravel-livewire-helpers

ActiveLibrary

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

A few useful helpers for Laravel Livewire.

1.0.3(5y ago)1571MITPHP

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 1mo ago

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 43% 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

1940d 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

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[mhmiton/laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.

236409.6k9](/packages/mhmiton-laravel-modules-livewire)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[lakm/laravel-comments

Integrate seamless commenting functionality into your Laravel project.

40012.9k1](/packages/lakm-laravel-comments)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)

PHPackages © 2026

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