Get eloquent type from migrations
Hello all, I'm looking for a way to can retrieve Eloquent fields types programmatically. For example, if in migration i set a field as "boolean" and commit it in DB, i would like to can know it in a controller for example. If i just get a desc from the DB, this field will be "tinyint(1)", so i cannot do it from this way. I will not necessary have Model, so i cannot use this way too. I had try with the getDoctrineColumn() from DBAL, but it give me "tinyint" too. (and anyway there is problem with enum columns with DBAL) This is for a package The only way i see is to parse Migrations files, but i have no idea how to do it. How can i "interpret" the code inside Migrations files from another code ? Anyone have idea to help me please ? Thank's in advance,
Please or to participate in this conversation.