add deleted_at column laravel migration

  Schema::create('subject', function (Blueprint $table) {
            $table->id();          
            $table->string('subject_name',100)->nullable(); 
            $table->softDeletes();       
            $table->timestamps();
                
        });
class QuestionMaster extends Model
{
    use HasFactory;
    protected $table = 'question_master';
    protected $fillable = [
'subject',
'unit',
'topic',
'level',
'tag',
'sub_tag',
    ];
    protected $primaryKey = 'id';
    use SoftDeletes;
}


Leave a Reply