%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/apache/htdocs/app/Models/
Upload File :
Create Path :
Current File : //usr/local/apache/htdocs/app/Models/Commande_product.php

<?php

namespace App\Models;

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

class Commande_product extends Model
{
    use HasFactory;

    protected $table = 'commande_products';
    
    protected $fillable = [

        'commande_id',
        'product_id',
        'remise',
    ];


    public function product() {
        return $this->hasOne(Product::class, 'id', 'product_id');
    }

    public function commande() {
        return $this->hasOne(Commande::class, 'id', 'commande_id');
    }
}

Zerion Mini Shell 1.0