lumen-generators/templates/model.wnt
2016-12-29 20:06:29 +01:00

18 lines
249 B
Plaintext

<?php namespace {{namespace}};
use Illuminate\Database\Eloquent\Model;
class {{name}} extends Model {
protected $fillable = [{{fillable}}];
protected $dates = [{{dates}}];
public static $rules = [
{{rules}}
];
{{relations}}
}