ChristianKuri / laravel-favorite

Allows Laravel Eloquent models to implement a 'favorite', 'like', 'remember' and 'follow' features.
MIT License
226 stars 48 forks source link

Column id #13

Closed Ishodnikov closed 5 years ago

Ishodnikov commented 5 years ago

Why is column ID missing in migration?

ChristianKuri commented 5 years ago

There is no need for it, but if you want you can publish the migration and add it.

php artisan vendor:publish --provider="ChristianKuri\LaravelFavorite\FavoriteServiceProvider"

amanpatel commented 3 years ago

This is still relevant... I just installed the package and got this error when I tried to add a favorite:

 (SQL: insert into "favorites" ("user_id", "favoriteable_id", "favoriteable_type", "updated_at", "created_at") values (?, 2, App\Network, 2021-02-12 23:14:49, 2021-02-12 23:14:49) returning "id")'