Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riteshsingh1/livewire-crud

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS And Bootstrap
https://github.com/riteshsingh1/livewire-crud

crud laravel laravel-livewire-crud livewire

Last synced: about 1 month ago
JSON representation

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS And Bootstrap

Awesome Lists containing this project

README

        

# LiveCrud

![Packagist License](https://img.shields.io/packagist/l/imritesh/livecrud)
![Packagist Downloads](https://img.shields.io/packagist/dt/imritesh/livecrud)
![Packagist Version](https://img.shields.io/packagist/v/imritesh/livecrud)

Live Crud Generator. This package generates Basic Crud with Livewire.

![](./livewire-crud.gif)

## Features
- Generate Complete Crud With Livewire Component and Blade Files
- Create / Update / Delete Functional
- Real Time Validation Already Added
- Fuzzy Search Functional

## Installation

Via Composer

``` bash
composer require imritesh/livecrud
```

## Prerequisites
- Models should be in `app/Models` directory
- Crud of only $fillable property will be generated
```php
protected $fillable = ['name','username'];
```

## Usage
```bash
php artisan crud:make Name_Of_Your_Model
```

- This Command Will Generate Two Files
- First Will be in `app/HttpLivewire`
- Second Will be in `resources/views/Livewire`

## For Bootstrap 4
1. Publish config and change `template = 'bootstrap'`

2. Please copy this script and paste in your layout just after @livewireScripts tag

```bash

window.livewire.on('showConfirmDelete', () => {
$('#deleteModal').modal('show');
});
window.livewire.on('hideConfirmDelete', () => {
$('#deleteModal').modal('hide');
});
window.livewire.on('showForm', () => {
$('#showForm').modal('show');
});
window.livewire.on('hideForm', () => {
$('#showForm').modal('hide');
});

```

## TODO

[] Bulma Support

## Security

If you discover any security related issues, please email author email instead of using the issue tracker.

## Credits

- [Ritesh Singh](https://imritesh.com)

## License

license. Please see the [license file](https://github.com/riteshsingh1/livewire-crud/blob/master/license.md) for more information.