Laravel use SoftDeletes;

use SoftDeletes;
if the above sentence is introduced into the model, it will be included in the query
. deleted_at is null this condition
but I found that the table structure field is 0. I would like to ask how to solve

at this time.
Jul.28,2021

before using migration to generate table structures, make sure you do this in the migration file?

Schema::table('demo',function ($table) {
    $table->softDeletes(); // deleted_at
});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c344-2c2ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c344-2c2ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?