tareq / xcurd
Easy Curd
v1.6
2019-10-06 11:30 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
- Install xcurd package from composer in your laravel app.
- Create a xmodel by this php artisan command
php artisan make:xmodel Blog -m
- Change migration file and then migrate
php artisan migrate
- 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 }