lumen-generators/templates/model.wnt

18 lines
271 B
Plaintext
Raw Normal View History

2015-09-23 03:49:46 +03:00
<?php namespace {{namespace}};
use Illuminate\Database\Eloquent\Model;
2016-12-29 18:35:34 +03:00
class {{name}} extends Model {
{{uses}} protected $fillable = [{{fillable}}];
2015-09-23 03:49:46 +03:00
protected $dates = [{{dates}}];
public static $rules = [
2015-09-23 17:53:55 +03:00
{{rules}}
];
2015-09-23 17:53:55 +03:00
2017-01-18 18:55:18 +03:00
{{additional}}{{relations}}
2015-09-23 17:53:55 +03:00
2015-09-23 03:49:46 +03:00
}