Mercurial > packages > magicforger
comparison src/Generator/Model/stubs/model.stub @ 45:c7fd31303024 default tip
merging down to default
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 12 Nov 2026 21:19:53 -0500 |
| parents | 50ca202284d5 |
| children |
comparison
equal
deleted
inserted
replaced
| 34:f65ab84ee47f | 45:c7fd31303024 |
|---|---|
| 1 <?php | 1 <?php |
| 2 | 2 |
| 3 namespace {{ namespace }}; | 3 namespace {{ namespace }}; |
| 4 | 4 |
| 5 use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| 5 use Illuminate\Database\Eloquent\SoftDeletes; | 6 use Illuminate\Database\Eloquent\SoftDeletes; |
| 6 use Wizard\Framework\Models\BaseModel; | 7 use Wizard\Framework\Models\BaseModel; |
| 7 | 8 |
| 8 class {{ class }} extends BaseModel | 9 class {{ class }} extends BaseModel |
| 9 { | 10 { |
| 10 //use HasFactory; | 11 /** @use HasFactory<\Database\Factories\{{ class }}Factory> */ |
| 12 use HasFactory; | |
| 11 use SoftDeletes; | 13 use SoftDeletes; |
| 12 | 14 |
| 13 /** | 15 /** |
| 14 * The table associated with the model. | 16 * The table associated with the model. |
| 15 * | 17 * |
| 35 ]; | 37 ]; |
| 36 | 38 |
| 37 protected $default_relations = [ | 39 protected $default_relations = [ |
| 38 # {{ defaultRelationsInsertPoint }} | 40 # {{ defaultRelationsInsertPoint }} |
| 39 ]; | 41 ]; |
| 42 | |
| 43 public static function named_joins() { | |
| 44 $joins = [ | |
| 45 // | |
| 46 ]; | |
| 47 return parent::named_joins(); | |
| 48 } | |
| 40 | 49 |
| 41 protected static $filters = [ | 50 protected static $filters = [ |
| 42 # {{ defaultFiltersInsertPoint }} | 51 # {{ defaultFiltersInsertPoint }} |
| 43 ]; | 52 ]; |
| 44 | 53 |
