Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

senkulabs/larva-snippets

Repository files navigation

Larva Snippets

Reusable snippets of Larva and Livewire.

Larva = Laravel + Livewire + Tailwind + Alpine

How to run?

Make sure you use PHP version 8.3 or higher and Bun.

cp .env.example .env
composer install && pnpm install
php artisan key:generate
php artisan migrate
php artisan storage:link
composer run dev

Snippets

  • Form
  • Reset Password
  • Alert (Sweet Alert)
  • Trix Editor
  • Nested Sortable
  • Select (Tom Select)
  • Datatable
  • Job Batching

Job Batching

In order to make Job Batching works, I use queue with Redis and job batching feature in Laravel. The reason has mentioned in Laravel documentation.

While building your web application, you may have some tasks, such as parsing and storing an uploaded CSV file, that take too long to perform during a typical web request. Thankfully, Laravel allows you to easily create queued jobs that may be processed in the background. By moving time intensive tasks to a queue, your application can respond to web requests with blazing speed and provide a better user experience to your customers.

Brief steps:

  • You must install Redis in your computer.
  • Run redis-server in tab terminal.

About

Reuseable snippets of Laravel and Livewire.

Resources

Stars

Watchers

Forks

Contributors