Merge pull request 'Added request quotation model file' (#94) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #94
This commit was merged in pull request #94.
This commit is contained in:
46
app/Models/RequestQuotation.php
Normal file
46
app/Models/RequestQuotation.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class RequestQuotation extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
'rfq_number',
|
||||
'rfq_date_time',
|
||||
'pickup_address',
|
||||
'delivery_address',
|
||||
'weight',
|
||||
'volumetrice_size_inch',
|
||||
'type_of_vehicle',
|
||||
'special_type',
|
||||
'no_of_vehicle',
|
||||
'product_name',
|
||||
'loading_by',
|
||||
'unloading_by',
|
||||
'pick_and_delivery',
|
||||
'payment_term',
|
||||
'paid_topay',
|
||||
'require_date_time',
|
||||
'transporter_name',
|
||||
'total_freight_charge',
|
||||
'transit_day',
|
||||
'spot_rate_transport_master_id',
|
||||
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
];
|
||||
|
||||
public function spotRateTransportMaster(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(SpotRateTransportMaster::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user