first commit
This commit is contained in:
36
modules/Develop/Support/Generate/stubs/model.stub
Normal file
36
modules/Develop/Support/Generate/stubs/model.stub
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace {namespace}
|
||||
|
||||
{uses}
|
||||
|
||||
{property}
|
||||
class {model} extends Model
|
||||
{
|
||||
{traits}
|
||||
|
||||
protected $table = '{table}';
|
||||
|
||||
protected $fillable = [{fillable} ];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected array $fieldsInList = [{fieldsInList}];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected array $form = [{form}];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public array $searchable = [
|
||||
{searchable}
|
||||
];
|
||||
|
||||
{isPaginate}
|
||||
}
|
Reference in New Issue
Block a user