File: //home/posscale/.trash/1app.1/Models/PrinterSmtp.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class PrinterSmtp extends Model
{
protected $table = 'smtp_datails';
use HasFactory, SoftDeletes;
protected $fillable = ['host', 'auth', 'printer_id', 'user_name', 'user_password', 'port', 'from', 'from_name'];
public function printer(): BelongsTo
{
return $this->belongsTo(Printer::class);
}
}