File: /var/www/vhosts/uat-api.tsprojects.net/admin.plotterbox.tsprojects.net/app/Models/Handprint.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Handprint extends Model
{
use HasFactory, SoftDeletes;
protected $table='tblHandprints';
public static $snakeAttributes = false;
protected $fillable = [
'userId',
'sessionId',
'bookId',
'fileId',
'filePath',
'imageFolder',
'savedBook',
'dedication',
'childName',
'parentName',
];
public function file()
{
return $this->belongsTo(Files::class, 'fileId', 'id');
}
public function book()
{
return $this->belongsTo(Books::class, 'bookId', 'id');
}
}