PHP code example of tareq / xcurd
1. Go to this page and download the library: Download tareq/xcurd library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tareq / xcurd example snippets
composer
php artisan make:xmodel Blog -m
php artisan migrate
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
}