riteshsingh1 / livewire-crud

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS And Bootstrap
Other
29 stars 16 forks source link
crud laravel laravel-livewire-crud livewire

LiveCrud

Packagist License Packagist Downloads Packagist Version

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

Features

Installation

Via Composer

composer require imritesh/livecrud

Prerequisites

Usage

php artisan crud:make Name_Of_Your_Model

For Bootstrap 4

  1. Publish config and change template = 'bootstrap'

  2. 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>

TODO

[] Bulma Support

Security

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

Credits

License

license. Please see the license file for more information.