Enable soft deleting for Import model
MODIFY
app/Import.php
app/Import.php
namespace App;
use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\SoftDeletes;
class Import extends Model {
- //
+ use SoftDeletes;
}

MODIFY
database/migrations/2018_10_14_122724_create_imports_table.php
database/migrations/2018_10_14_122724_create_imports_table.php
@@ -14,6 +14,7 @@ class CreateImportsTable extends Migration {
$table->string('file');
$table->integer('status')->default(0);
$table->timestamps();
+ $table->softDeletes();
// FKs
$table->foreign('space_id')->references('id')->on('spaces');

Enable soft deleting for Import model