comparison src/Generator/Model/stubs/model.stub @ 31:8dd668020310 codex

started converting too bootstrap, also better support for casts
author Luka Sitas <sitas.luka.97@gmail.com>
date Tue, 19 Aug 2025 20:34:53 -0400
parents 010ace248d14
children 76584181267a
comparison
equal deleted inserted replaced
30:21439512ba69 31:8dd668020310
1 <?php 1 <?php
2 2
3 namespace {{ namespace }}; 3 namespace {{ namespace }};
4 4
5 use Illuminate\Database\Eloquent\SoftDeletes; 5 use Illuminate\Database\Eloquent\SoftDeletes;
6 use Wizard\Framework\Models\BaseModel;
6 7
7 class {{ class }} extends BaseModel 8 class {{ class }} extends BaseModel
8 { 9 {
9 //use HasFactory; 10 //use HasFactory;
10 use SoftDeletes; 11 use SoftDeletes;
22 * @var array 23 * @var array
23 */ 24 */
24 protected $attributes = [ 25 protected $attributes = [
25 # {{ atributeInsertPoint }} 26 # {{ atributeInsertPoint }}
26 ]; 27 ];
28
29 protected $casts = [
30 # {{ castInsertPoint }}
31 ];
27 32
28 protected $fillable = [ 33 protected $fillable = [
29 # {{ fillableInsertPoint }} 34 # {{ fillableInsertPoint }}
30 ]; 35 ];
31 36