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;
}

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe to get the latest posts sent to your email.



Leave a Reply

Discover more from Soa Technology | Aditya Website Development Designing Company

Subscribe now to keep reading and get access to the full archive.

Continue reading