tareq/xcurd

Easy Curd

v1.6 2019-10-06 11:30 UTC

This package is auto-updated.

Last update: 2024-05-15 20:26:51 UTC


README

Xcurd is crud generetor for laravel.With xcurd you can easily make curd operation of any tipe of model.

  • Type some Markdown on the left
  • See HTML in the right
  • Magic

Installation

Xcurd can be install by this composer command

composer require tareq/xcurd
  1. Install xcurd package from composer in your laravel app.
  2. Create a xmodel by this php artisan command
php artisan make:xmodel Blog -m
  1. Change migration file and then migrate
php artisan migrate
  1. Make changes in your model like form fields and display table fields
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    public $routeNamePrefix="";//if route hav prefix
    public $form_fields=['name'=>'text']; //curd form fields
    public $table_fields=['name']; //curd table fields
}