diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-10-06 14:15:54 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-10-31 13:43:23 +0100 |
commit | 8e62c4c52c27f9432820915deeb699c3d1f58ce7 (patch) | |
tree | 43d22891924aeaa42108c21309da6b09b5390128 /src/Models/User/Contact.php | |
parent | b443b53919f50bd0176e7b67dfd1efc28276a770 (diff) |
Added new user models
Diffstat (limited to 'src/Models/User/Contact.php')
-rw-r--r-- | src/Models/User/Contact.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Models/User/Contact.php b/src/Models/User/Contact.php new file mode 100644 index 00000000..8adf9df7 --- /dev/null +++ b/src/Models/User/Contact.php @@ -0,0 +1,26 @@ +<?php + +namespace Engelsystem\Models\User; + +/** + * @property string $dect + * @property string $email + * @property string $mobile + * + * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact whereDect($value) + * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact whereEmail($value) + * @method static \Illuminate\Database\Query\Builder|\Engelsystem\Models\User\Contact whereMobile($value) + */ +class Contact extends HasUserModel +{ + /** @var string The table associated with the model */ + protected $table = 'users_contact'; + + /** The attributes that are mass assignable */ + protected $fillable = [ + 'user_id', + 'dect', + 'email', + 'mobile', + ]; +} |