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 | ]; |
||
20 | |||
21 | protected $guarded = [ |
||
22 | 'key', |
||
23 | 'secret', |
||
24 | ]; |
||
25 | |||
26 | protected $casts = [ |
||
27 | 'enable_client_messages' => 'bool', |
||
28 | 'enable_statistics' => 'bool', |
||
29 | ]; |
||
30 | |||
31 | public function getTable() |
||
35 | |||
36 | protected static function boot() |
||
45 | } |
||
46 |
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.