Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS And Bootstrap
- Host: GitHub
- URL: https://github.com/riteshsingh1/livewire-crud
- Owner: riteshsingh1
- License: other
- Created: 2021-04-06T10:51:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-27T23:24:26.000Z (over 1 year ago)
- Last Synced: 2024-09-30T04:41:38.648Z (3 months ago)
- Topics: crud, laravel, laravel-livewire-crud, livewire
- Language: PHP
- Homepage:
- Size: 372 KB
- Stars: 30
- Watchers: 1
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license.md
- Code of conduct: CODE_OF_CONDUCT.md
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.