$notifications * @property-read int|null $notifications_count * @property-read \App\Models\ShoppingUser|null $shoppingUser * @method static \Illuminate\Database\Eloquent\Builder|Customer newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Customer newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Customer query() * @method static \Illuminate\Database\Eloquent\Builder|Customer whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereEmail($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereLanguage($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereMemberId($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereMode($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereNumber($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereRememberToken($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereShoppingUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|Customer whereUpdatedAt($value) * @mixin \Eloquent */ class Customer extends Authenticatable // Erbt von Authenticatable { use HasFactory, Notifiable; protected $table = 'customers'; protected $fillable = [ 'name', 'email', 'shopping_user_id', 'member_id', 'number', 'language', 'mode', ]; // Wichtig: Laravel Auth benötigt dies, auch wenn kein Passwort verwendet wird protected $hidden = [ 'remember_token', ]; public function shoppingUser() { return $this->belongsTo(ShoppingUser::class, 'shopping_user_id'); } public function member() { return $this->belongsTo(User::class, 'member_id'); } }