GithubHelp home page GithubHelp logo

piahdoneumann / livewire-crud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from riteshsingh1/livewire-crud

0.0 1.0 0.0 368 KB

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

License: Other

PHP 100.00%

livewire-crud's Introduction

LiveCrud

Packagist License Packagist Downloads Packagist Version

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

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

composer require imritesh/livecrud

Prerequisites

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

Usage

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.