HEX
Server: Apache
System: Linux 162-241-121-228.webhostbox.net 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
User: apiuattsproject (10003)
PHP: 8.2.30
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uat-api.tsprojects.net/admin.plotterbox.tsprojects.net/app/Models/BookText.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
use Illuminate\Database\Eloquent\SoftDeletes;

class BookText extends Model
{
    use HasFactory, SoftDeletes;

    protected $table='tblBookTexts';

    public static $snakeAttributes = false;
    
    protected $fillable = [
        'firendFirstName',
        'friendLastName',
        'UserFirstName',
        'UserLastName',
        'coverId',
        'formatId',
        'paperType',
        'DedicationText',
        'createdBy',
        'updatedBy',
    ];

    public function createdBy()
    {
        return $this->belongsTo(User::class, 'createdBy', 'id');
    }

    public function updatedBy()
    {
        return $this->belongsTo(User::class, 'updatedBy', 'id');
    }

    public function bookFormat()
    {
        return $this->belongsTo(BookFormat::class, 'formatId', 'id');
    }

    public function bookCover()
    {
        return $this->belongsTo(BookCover::class, 'coverId', 'id');
    }
}