All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
47 lines
959 B
PHP
47 lines
959 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
// use Illuminate\Database\Eloquent\Prunable;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ModelMaster extends Model
|
|
{
|
|
// use Prunable;
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'plant_id',
|
|
'machine_id',
|
|
'heading_name',
|
|
'heading_value',
|
|
'type_name',
|
|
'type_value',
|
|
'has_motor',
|
|
'has_m_part',
|
|
'has_m_count',
|
|
'has_pump',
|
|
'has_p_part',
|
|
'has_p_count',
|
|
'has_name_plate',
|
|
'has_np_part',
|
|
'has_np_count',
|
|
'created_at',
|
|
'updated_at',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public function plant(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Plant::class);
|
|
}
|
|
|
|
public function machine(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Machine::class);
|
|
}
|
|
}
|