1 | <?php |
||
8 | class App extends Model |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | protected $fillable = [ |
||
13 | 'name', |
||
14 | 'host', |
||
15 | 'key', |
||
16 | 'secret', |
||
17 | 'enable_client_messages', |
||
18 | 'enable_statistics', |
||
19 | 'active', |
||
20 | ]; |
||
21 | |||
22 | protected $guarded = [ |
||
23 | 'key', |
||
24 | 'secret', |
||
25 | ]; |
||
26 | |||
27 | protected $casts = [ |
||
28 | 'enable_client_messages' => 'bool', |
||
29 | 'enable_statistics' => 'bool', |
||
30 | ]; |
||
31 | |||
32 | public function getTable() |
||
36 | |||
37 | protected static function boot() |
||
46 | } |
||
47 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.