VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/vapecompany/demo.vapecompany.com.bd/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/vapecompany/demo.vapecompany.com.bd/app/Models/ProductImei.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProductImei extends Model
{
    use HasFactory;
    protected $primaryKey ='product_imei_id';
    protected $fillable = [
    	'product_id',
    	'stock_color_id',
        'product_code',
        'carton_code',
        'item_code',
        'model',
        'color',
        'imei_1',
        'imei_2',
    ];
    public function stock_color()
    {
        return $this->belongsTo('App\Models\StockColor','stock_color_id');
    }
    public function sale_color()
    {
        return $this->belongsTo('App\Models\Color','color','color_id');
    }
    public function chalan_details()
    {
        return $this->belongsTo('App\Models\ChalanDetails','chalan_details_id');
    }
    public function product()
    {
        return $this->belongsTo('App\Models\Product','product_id');
    }
}

VaKeR 2022