1 | <?php |
||
12 | class AnomalyModulePreferencesCreatePreferencesStreams extends Migration |
||
|
|||
13 | { |
||
14 | |||
15 | /** |
||
16 | * The stream definition. |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $stream = [ |
||
21 | 'slug' => 'preferences', |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * The stream assignments. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $assignments = [ |
||
30 | 'user' => [ |
||
31 | 'required' => true, |
||
32 | ], |
||
33 | 'key' => [ |
||
34 | 'required' => true, |
||
35 | ], |
||
36 | 'value', |
||
37 | ]; |
||
38 | |||
39 | } |
||
40 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.