Błąd składni lub naruszenie dostępu: 1072 Klucz Kolumna „User_id” nie istnieje w tabeli (SQL: Zmień tabelę `grupy` Dodaj ograniczenie `grupy_user_id_foreign` Key obcy
// You forgot to create the column before creating the relationship
// Do something like (add unsigned before the relationship):
$table->integer('user_id')->unsigned();
$table->foreign('user_id')->references('id')->on('users');
Tough Tarsier