DEV Community

waziri ally amiri
waziri ally amiri

Posted on

Tall CRUD Generator for Livewire v3

Introduction

The Tall CRUD Generator is a Laravel package that generates Livewire components that support CRUD features without you having to write any code. It is a powerful tool that can help you to quickly and easily create CRUD interfaces for your Laravel applications.

Requirements

The Tall CRUD Generator requires the following:

Laravel
Livewire
TailwindCSS
AlpineJS

Installation

To install the Tall CRUD Generator, run the following command:

composer require waziri123/waziri-tall-crud-generator:dev-master

Usage

Once you have installed the Tall CRUD Generator, you can display the configuration page by including the Livewire component in any view:

HTML

@livewire('tall-crud-generator')
Enter fullscreen mode Exit fullscreen mode

Use code with caution. Learn more
This will allow you to select the model and fields that you want to generate the CRUD interface for. You can also configure a number of other options, such as whether or not to include pagination, sorting, and searching.

Once you have configured the CRUD interface, you can generate the code by clicking on the "Generate" button. The Tall CRUD Generator will generate a Livewire component and corresponding views for the CRUD interface. You can then add the Livewire component to your application's layout and start using the CRUD interface immediately.

Features

The Tall CRUD Generator supports a wide range of features, including:

Pagination
Sorting
Searching
Add form in modal
Edit form in modal
Delete with modal confirmation
Validations
Configurable column order in listing
Configurable field type for form
Configurable order for form fields
Flash messages
Configurable number of records per page
Dropdown to change number of records per page
Relations: BelongsTo and BelongsToMany in listing and form
Display related fields in the listing using eager loading
Display count of related fields in the listing using eager loading count
Ability for user to show/hide columns on listing
Allow user to define filters
Bulk action
Date filters

Troubleshooting

If you are having trouble with the Tall CRUD Generator, please check the following:

Make sure that you have installed all of the required dependencies (Laravel, Livewire, TailwindCSS, and AlpineJS).
Make sure that you have published the package's views:
"

php artisan vendor:publish --provider="WAZIRITALLCRUDGENERATOR\TallCrudGeneratorServiceProvider" --tag=views
Enter fullscreen mode Exit fullscreen mode

"

If you are using TailwindCSS, make sure that you have compiled the TailwindCSS assets:
"

npm run dev
Enter fullscreen mode Exit fullscreen mode

"

If you are still having trouble, please open an issue on the package's GitHub repository.

Conclusion

The Tall CRUD Generator is a powerful tool that can help you to quickly and easily create CRUD interfaces for your Laravel applications. It is easy to use and supports a wide range of features. If you are looking for a way to speed up the development of your Laravel applications, I highly recommend checking out the Tall CRUD Generator.

Top comments (0)