
Illuminate/ Исключение базы данных/запроса с сообщением «SQLSTATE[HY000]: общая ошибка: в 1 таблице профилей нет столбца с именем title (SQL: вставить в «профили» («title», «description», «user_id», «updated_at», «created_at» ) значения (asd, 123123, 2, 31 июля 2020 10:19:03, 31 июля 2020 10:19:03))'
Это ошибка, с которой я столкнулся при использовании '$profile -> save();'
Это 2020_07_31_074115_create_profiles_table.php:
public function up()
{
Schema::create('profiles', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id');
$table->string('title')->nullable();
$table->text('description')->nullable();
$table->string('url')->nullable();
$table->timestamps();
$table->index('user_id'); //FK
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('profiles');
}
Это 2014_10_12_000000_create_users_table.php
Подробнее здесь: https://stackoverflow.com/questions/631 ... san-tinker
Мобильная версия