added code generator back to repository

This commit is contained in:
omair saleh
2020-09-14 16:36:40 +08:00
parent 0cab8e6456
commit 06b024ce9f
84 changed files with 5955 additions and 1 deletions
@@ -0,0 +1,44 @@
<?php
namespace $NAMESPACE_MODEL$;
use $NAMESPACE_MODEL_EXTEND$ as Model;
$SOFT_DELETE_IMPORT$
$DOCS$
class $MODEL_NAME$ extends AbstractModel
{
$SOFT_DELETE$
protected $table = '$TABLE_NAME$';
$TIMESTAMPS$
$SOFT_DELETE_DATES$
$PRIMARY$
public $fillable = [
$FIELDS$
];
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts = [
$CAST$
];
/**
* Validation rules
*
* @var array
*/
public static $rules = [
$RULES$
];
$RELATIONS$
}