lumen-generators/templates/model.wnt

18 lines
236 B
Plaintext
Raw Normal View History

2015-09-23 03:49:46 +03:00
<?php namespace {{namespace}};
use Illuminate\Database\Eloquent\Model;
2016-03-30 10:28:44 +03:00
class {{name}} extends Model
{
2015-09-23 03:49:46 +03:00
protected $fillable = [{{fillable}}];
protected $dates = [{{dates}}];
public static $rules = [
2015-09-23 17:53:55 +03:00
{{rules}}
];
{{relations}}
2015-09-23 17:53:55 +03:00
2015-09-23 03:49:46 +03:00
}