rinvex / laravel-attributes

⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
MIT License
434 stars 104 forks source link

Inserting values into a table that doesn't exist instead of attribute value table #164

Open johnmaf21 opened 2 years ago

johnmaf21 commented 2 years ago

I'm trying to implement eav into a movie review web application. I have an error with inserting values which I'm not sure how to fix as I went through the documentation.

When I try to add a new genre.title value to the database I get an error message as it's trying to insert into a genre table that doesn't exist and not into the attribute values table. image

GenreSeeder.php image

App\Models\Genre.php image

AppServiceProvider.php image I've tried both ways using the full path and morphMap and I still get the same error.

The attribute title does get inserted into the table however when it gets to the value it gives back the error from above.

attributes image

attributes_entities image