-
-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Description
Laravel 6
Issue 1:
Class App\Author contains 18 abstract methods and must therefore be declared abstract or implement the remaining methods.
I have checked and this issue is occurring when I add "implements TranslatableContract" to the class
Issue 2: (Solved)
If I add
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
I am getting an error while migrating
SQLSTATE[HY000]: General error: 1005 Can't create table
ts.post_translations(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter tablepost_translationsadd constraintpost_translations_post_id_foreignforeign key (post_id) referencesposts(id) on delete cascade)