Hoan thien core finance v2 - Calculation Pipeline, Form Templates
This commit is contained in:
29
app/Models/FormPrintLog.php
Normal file
29
app/Models/FormPrintLog.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class FormPrintLog extends Model
|
||||
{
|
||||
use HasUuids, HasFactory;
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $casts = [
|
||||
'snapshot_data' => 'array',
|
||||
'printed_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function template()
|
||||
{
|
||||
return $this->belongsTo(FormTemplate::class);
|
||||
}
|
||||
|
||||
public function printedBy()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'printed_by');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user