I have a questions about extending blueprint, since the docs doesn't cover too much about it, and I have not a twitter account to ask there, so sorry to jump here with this question.
I create a custom generator which starting from a model defined in draft.yaml, generate the controllers and basic views with a table with sorting and filtering.
All works fine so far, pretty powerful package!
At the moment I have just get all columns from model using $model->columns()
and making all string, number and dates sortable and filterable.
I would like to add some new info inside draft.yaml when defining the model.
Somethiing like:
models:
Post:
title: string:255 sortable filterable
content: longtext filterable
published_at: nullable timestamp
softDeletes
seeders: Post
I think such things should be done in the lexer, since we can only overrides the generators via config, is there a way to do this without creating custom model generator and model lexer?
Thanks