store-manage/app/Models/StoreProfitRatioLog.php

32 lines
664 B
PHP

<?php
namespace App\Models;
use App\Traits\HasDateTimeFormatter;
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StoreProfitRatioLog extends Model
{
use Filterable, HasDateTimeFormatter, HasFactory;
protected $fillable = [
'store_id',
'employee_id',
'before',
'after',
];
public function store(): BelongsTo
{
return $this->belongsTo(Store::class);
}
public function employee(): BelongsTo
{
return $this->belongsTo(Employee::class);
}
}