27 lines
552 B
PHP
27 lines
552 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use EloquentFilter\Filterable;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RiceShrimpWeeklyPrice extends Model
|
|
{
|
|
use Filterable, HasFactory;
|
|
|
|
protected $fillable = [
|
|
'year', 'week', 'price', 'created_by', 'updated_by',
|
|
];
|
|
|
|
public function createdBy()
|
|
{
|
|
return $this->belongsTo(AdminUser::class, 'created_by');
|
|
}
|
|
|
|
public function updatedBy()
|
|
{
|
|
return $this->belongsTo(AdminUser::class, 'updated_by');
|
|
}
|
|
}
|