File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace {{ $config -> namespaces -> model } } ;
66
77use Illuminate\Database\Eloquent\Model;
8- @if ($config -> options -> softDelete ) {{ ' use Illuminate\Database\Eloquent\SoftDeletes;' } }; @endif
9- @if ($config -> options -> tests ) {{ ' use Illuminate\Database\Eloquent\Factories\HasFactory;' } }; @endif
8+ @if ($config -> options -> softDelete ) {{ ' use Illuminate\Database\Eloquent\SoftDeletes;' } }@endif
9+ @if ($config -> options -> tests or $config -> options -> factory ) {{ ' use Illuminate\Database\Eloquent\Factories\HasFactory;' } }@endif
1010
1111@if (isset ($swaggerDocs ) ){!! $swaggerDocs ! !}@endif
1212class {{ $config -> modelNames -> name } } extends Model
1313{
1414@if ($config -> options -> softDelete ) {{ infy_tab (). ' use SoftDeletes;' } }@endif
15- @if ($config -> options -> tests ){{ infy_tab (). ' use HasFactory;' } }@endif
15+ @if ($config -> options -> tests or $config -> options -> factory ){{ infy_tab (). ' use HasFactory;' } }@endif
1616 public $table = '{{ $config -> tableName } } ';
1717
1818@if ($customPrimaryKey )@tab ()protected $primaryKey = '{{ $customPrimaryKey } } ';@nls (2 )@endif
You can’t perform that action at this time.
0 commit comments