HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/.trash/1app.2/Models/Printer.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

class Printer extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = ['equipment_id', 'model_name', 'serial_number', 'type_title', 'toner_type', 'drum_unit', 'fuser_unit', 'paper_tray', 'paper_feed_rollers', 'duplex_unit','transfer_belt','toner_discreptions','address','city','zip','state','country'];

    public function smtp(): HasOne
    {
        return  $this->hasOne(PrinterSmtp::class);
    }


    public function jobs(): HasMany
    {
        return $this->hasMany(PrinterJob::class, 'printer_id', 'id');
    }

    public function customers(): HasOne
    {
        return  $this->hasOne(Customer::class);
    }
    public function reception(): HasOne
    {
        return  $this->hasOne(Reception::class);
    }

}