mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
added code generator back to repository
This commit is contained in:
@@ -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$
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user