beyondcode/laravel-er-diagram-generator

Only seeing BelongsToMany relations, Laravel 5.3.31. PHP 7.1.19

Closed this issue · 2 comments

I'm only seeing BelongsToMany relations in the generated image. I'm using the default config with an added relation:

'relations' => [
'HasOne' => [
'dir' => 'both',
'color' => '#D62828',
'arrowhead' => 'tee',
'arrowtail' => 'none',
],
'BelongsTo' => [
'dir' => 'both',
'color' => '#F77F00',
'arrowhead' => 'tee',
'arrowtail' => 'crow',
],
'HasMany' => [
'dir' => 'both',
'color' => '#FCBF49',
'arrowhead' => 'crow',
'arrowtail' => 'none',
],
'BelongsToMany' => [
'dir' => 'both',
'color' => '#F77F00',
'arrowhead' => 'tee',
'arrowtail' => 'none',
],
'MorphTo' => [
'dir' => 'both',
'color' => '#F77F00',
'arrowhead' => 'tee',
'arrowtail' => 'none',
]
]

Getting all sorts of errors in the catch of getRelationshipFromMethodAndModel.
FIxing those first.

Realizing this package isn't compatible with Laravel 5.3.