src/Scaffold/ModelCreator.php
protected function replaceSoftDeletes(&$stub, $softDeletes)
    {
        $import = $use = '';

        if ($softDeletes) {
            $import = "use Illuminate\\Database\\Eloquent\\SoftDeletes;\n";
            $use = "use SoftDeletes;\n";
        }

        $stub = str_replace(['DummyImportSoftDeletesTrait', 'DummyUseSoftDeletesTrait'], [$import, $use], $stub);

        return $this;
    }
protected function replaceSoftDeletes(&$stub, $softDeletes)
    {
        $import = $use = '';

        if ($softDeletes) {
            $import = "use Illuminate\\Database\\Eloquent\\SoftDeletes;\n";
            $use = "use SoftDeletes;\n";
        }

        $stub = str_replace(['DummyImportSoftDeletesTrait', 'DummyUseSoftDeletesTrait'], [$import, $use], $stub);

        return $this;
    }
protected function replaceSoftDeletes ( & $ stub , $ softDeletes ) { $ import = $ use = '' ; if ( $ softDeletes ) { $ import = "use Illuminate\\Database\\Eloquent\\SoftDeletes;\n" ; $ use = "use SoftDeletes;\n" ; } $ stub = str_replace ( [ 'DummyImportSoftDeletesTrait' , 'DummyUseSoftDeletesTrait' ] , [ $ import , $ use ] , $ stub ) ; return $ this ; }
Replace soft-deletes dummy.

@param string $stub
@param bool   $softDeletes

@return $this
Replace soft - deletes dummy .