22 lines
434 B
PHP
22 lines
434 B
PHP
<?php
|
|
|
|
namespace Modules\DailyReports\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class DailyReportMaterial extends Model
|
|
{
|
|
protected $fillable = [
|
|
'daily_report_id',
|
|
'material_name',
|
|
'quantity_received',
|
|
'condition',
|
|
];
|
|
|
|
public function dailyReport(): BelongsTo
|
|
{
|
|
return $this->belongsTo(DailyReport::class);
|
|
}
|
|
}
|