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 5
5
namespace {{ $config -> namespaces -> model } } ;
6
6
7
7
use 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
10
10
11
11
@if (isset ($swaggerDocs ) ){!! $swaggerDocs ! !}@endif
12
12
class {{ $config -> modelNames -> name } } extends Model
13
13
{
14
14
@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
16
16
public $table = '{{ $config -> tableName } } ';
17
17
18
18
@if ($customPrimaryKey )@tab ()protected $primaryKey = '{{ $customPrimaryKey } } ';@nls (2 )@endif
You can’t perform that action at this time.
0 commit comments