[Solved] Column not found: 1054 Unknown column ‘logo’ in ‘field list’


Add new column to basic_settings table using command php artisan make:migration add_logo_field_to_basic_settings_table.

Once migration created make Changes like below.

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddLogoFieldToBasicSettingsTable extends Migration
{
 
    public function up()
    {
        Schema::table('basic_settings', function (Blueprint $table) {
            $table->string('logo');
        });
    }

   
    public function down()
    {
         Schema::table('basic_settings', function (Blueprint $table) {
            $table->dropColumn(['logo']);
        });
    }
} 

Now you can migrate and create or update logo column.

Migrate:
php artisan migrate

2

solved Column not found: 1054 Unknown column ‘logo’ in ‘field list’