Live Crud Generator. This package generates Basic Crud with Livewire.
- Generate Complete Crud With Livewire Component and Blade Files
- Create / Update / Delete Functional
- Real Time Validation Already Added
- Fuzzy Search Functional
Via Composer
composer require imritesh/livecrud
- Models should be in
app/Models
directory - Crud of only $fillable property will be generated
protected $fillable = ['name','username'];
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
- First Will be in
-
Publish config and change
template = 'bootstrap'
-
Please copy this script and paste in your layout just after @livewireScripts tag
<script type="text/javascript">
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');
});
</script>
[] Bulma Support
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.