kevincobain2000 / laravel-erd

Automatically generate ERD Diagrams from Model's relations in Laravel
https://medium.com/web-developer/laravel-automatically-generate-interactive-erd-from-eloquent-relations-83fe65440716
138 stars 25 forks source link

Misisng Tables added via Traits #21

Closed philsturgeon closed 1 year ago

philsturgeon commented 2 years ago

I'm using Laravel Sanctum and noticed the personal_access_tokens table didn't show up in this brilliant ERD. I believe it uses a MorphMany relationship.

namespace App\Models\Organization;

class Organization {
  use Laravel\Sanctum\HasApiTokens;
  use HasApiTokens;
}

Just a thought.

Thanks for making this package!

kevincobain2000 commented 2 years ago

Thanks, it'd be tough to implement such. Let me have a look.

ianyxtan commented 1 year ago

Good package to generate diagrams!

I have a similar issue when generating diagrams for relationships that use traits from other packages. To be specific spatie/laravel-packages.

Thanks for making this package.