lumen-generators/templates/model.wnt

18 lines
237 B
Plaintext
Raw Normal View History

2015-09-23 03:49:46 +03:00
<?php namespace {{namespace}};
use Illuminate\Database\Eloquent\Model;
class {{name}} extends Model {
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
}