Синтаксис ошибка или нарушение доступа: 1072 Столбец ключа user_id не существует в таблице (SQL: ALTER TABLE `Группы добавить ограничение` Groups_user_id_foreign` Foreign Key (`user_id`) Ссылки` users` (`id`))))
// 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