Added locator invoice validation model file
This commit is contained in:
33
app/Models/LocatorInvoiceValidation.php
Normal file
33
app/Models/LocatorInvoiceValidation.php
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
|
class LocatorInvoiceValidation extends Model
|
||||||
|
{
|
||||||
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $fillable = [
|
||||||
|
'plant_id',
|
||||||
|
'invoice_number',
|
||||||
|
'serial_number',
|
||||||
|
'pallet_number',
|
||||||
|
'locator_number',
|
||||||
|
'scanned_status',
|
||||||
|
'upload_status',
|
||||||
|
'created_at',
|
||||||
|
'updated_at',
|
||||||
|
'scanned_at',
|
||||||
|
'created_by',
|
||||||
|
'scanned_by',
|
||||||
|
'updated_by',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function plant(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Plant::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user