laravel-attributes icon indicating copy to clipboard operation
laravel-attributes copied to clipboard

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

Open johnmaf21 opened this issue 3 years ago • 0 comments

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

johnmaf21 avatar Dec 27 '21 18:12 johnmaf21