ldc-mesbr-app/app/Models/PanierContent.php

52 lines
934 B
PHP
Raw Permalink Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Models;
2019-01-15 14:17:15 +01:00
use Illuminate\Database\Eloquent\Model;
class PanierContent extends Model
{
/**
* @var string
*/
protected $table = 'panier_content';
/**
* @var string
*/
protected $primaryKey = 'panier_content_id';
/**
2025-04-03 09:30:16 +02:00
* @var boolean
2019-01-15 14:17:15 +01:00
*/
public $timestamps = false;
/**
* ManyToOne
* PanierContent -> Panier
*/
public function panier()
{
return $this->belongsTo('App\Models\Panier', 'panier_content_panierId', 'panier_id');
2019-01-15 14:17:15 +01:00
}
/**
* ManyToOne
* PanierContent -> Coupon
*/
public function coupon()
{
return $this->belongsTo('App\Models\Coupon', 'panier_content_couponId');
2019-01-15 14:17:15 +01:00
}
2019-03-05 11:16:56 +01:00
/**
* @var array
*/
protected $fillable = [
'panier_content_panierId',
'panier_content_couponId',
'panier_content_quantity',
2021-04-27 17:29:47 +02:00
'panier_content_printed'
2019-03-05 11:16:56 +01:00
];
2019-01-15 14:17:15 +01:00
}