Releases: fumeapp/modeltyper
Releases · fumeapp/modeltyper
composer fixes
v1.0.24 🔧 fixing broken composer
laravel v9 support
support laravel v9 and php 8.1
Full Changelog: v1.0.12...v1.0.23
Date support
Added support for date (not just datetime)
Support for global namesapce
v1.0.21 🎨 readme update for global namespace
relationship overrider and nullables
- allow relationship override with interfaces
- allow nullable interfaces
interfaces bug
fixed bug with not finding nullable interfaces
intterfaces bug fix
- fixed a bug where left-over interfaces were not being picked up
Fix column parsing bug
v1.0.17 🐛 fix for not properly continuing column parsing
remove the trailing break return
v1.0.16 🐛 remove that annoying extra br
Custom Interface Support
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