1 | <?php |
||
38 | class Member extends Model implements HasPresenter |
||
39 | { |
||
40 | use ValidatingTrait; |
||
41 | |||
42 | /** |
||
43 | * The attributes that should be casted to native types. |
||
44 | * |
||
45 | * @var string[] |
||
46 | */ |
||
47 | protected $casts = [ |
||
48 | 'access_level' => 'int', |
||
49 | 'source_id' => 'int', |
||
50 | 'source_type' => 'string', |
||
51 | 'user_id' => 'int', |
||
52 | 'notification_level' => 'int', |
||
53 | 'type' => 'string', |
||
54 | 'created_by_id' => 'int', |
||
55 | ]; |
||
56 | |||
57 | /** |
||
58 | * The fillable properties. |
||
59 | * |
||
60 | * @var string[] |
||
61 | */ |
||
62 | protected $fillable = [ |
||
63 | 'access_level', |
||
64 | 'source_id', |
||
65 | 'source_type', |
||
66 | 'notification_level', |
||
67 | 'type', |
||
68 | ]; |
||
69 | |||
70 | /** |
||
71 | * The validation rules. |
||
72 | * |
||
73 | * @var string[] |
||
74 | */ |
||
75 | public $rules = [ |
||
76 | 'source_id' => 'required|string', |
||
77 | 'source_type' => 'required|string', |
||
78 | 'user_id' => 'int', |
||
79 | 'type' => 'string', |
||
80 | 'created_by_id' => 'int', |
||
81 | ]; |
||
82 | |||
83 | /** |
||
84 | * Get the presenter class. |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | public function getPresenterClass() |
||
92 | } |
||
93 |