Skip to content

Releases: fumeapp/modeltyper

composer fixes

09 Feb 14:59
Compare
Choose a tag to compare
v1.0.24

🔧 fixing broken composer

laravel v9 support

09 Feb 14:57
Compare
Choose a tag to compare

support laravel v9 and php 8.1

Full Changelog: v1.0.12...v1.0.23

Date support

22 Dec 16:48
Compare
Choose a tag to compare

Added support for date (not just datetime)

Support for global namesapce

21 Oct 20:47
Compare
Choose a tag to compare
v1.0.21

🎨 readme update for global namespace

relationship overrider and nullables

02 Sep 01:11
Compare
Choose a tag to compare
  • allow relationship override with interfaces
  • allow nullable interfaces

interfaces bug

22 Aug 10:49
Compare
Choose a tag to compare

fixed bug with not finding nullable interfaces

intterfaces bug fix

22 Aug 10:26
Compare
Choose a tag to compare
  • fixed a bug where left-over interfaces were not being picked up

Fix column parsing bug

18 Aug 03:08
Compare
Choose a tag to compare
v1.0.17

🐛 fix for not properly continuing column parsing

remove the trailing break return

18 Aug 02:07
Compare
Choose a tag to compare
v1.0.16

🐛 remove that annoying extra br

Custom Interface Support

18 Aug 02:02
Compare
Choose a tag to compare

Custom Interfaces

If you have custom interfaces you are using for your models you can specify them in a reserved interfaces array

For example for a custom Point interface in a Location model you can put this in the model

public array $interfaces = [
    'coordinate' => [
        'name' => 'Point',
        'import' => "@/types/api",
    ],
];

And it should generate:

import { Point } from '@/types/api'

export interface Location {
  // columns
  coordinate: Point
}

This will override all columns or mutators