1 | <?php |
||
7 | class Email extends Base |
||
8 | { |
||
9 | public $incrementing = false; |
||
10 | protected $casts = [ |
||
11 | 'email' => 'string', |
||
12 | ]; |
||
13 | protected $primaryKey = 'email'; |
||
14 | protected $keyType = 'string'; |
||
15 | |||
16 | /** |
||
17 | * The attributes that are mass assignable. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $fillable = [ |
||
22 | 'email', |
||
23 | 'address', |
||
24 | 'domain', |
||
25 | 'integration_id', |
||
26 | ]; |
||
27 | |||
28 | protected $mappingProperties = array( |
||
29 | /** |
||
30 | * User Info |
||
31 | */ |
||
32 | 'email' => [ |
||
33 | 'type' => 'string', |
||
34 | "analyzer" => "standard", |
||
35 | ], |
||
36 | ); |
||
37 | |||
38 | /** |
||
39 | * Get all of the slaves that are assigned this tag. |
||
40 | */ |
||
41 | public function associations($class) |
||
45 | |||
46 | /** |
||
47 | * Get all of the slaves that are assigned this tag. |
||
48 | */ |
||
49 | public function persons() |
||
53 | |||
54 | /** |
||
55 | * Get all of the users that are assigned this tag. |
||
56 | */ |
||
57 | public function users() |
||
61 | } |
||
62 |