ldc-mesbr-app/app/Notification.php

33 lines
494 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Notification extends Model
{
/**
* @var string
*/
protected $table = 'notification';
/**
* @var string
*/
protected $primaryKey = 'notif_id';
/**
2025-04-03 09:30:16 +02:00
* @var boolean
2019-01-15 14:17:15 +01:00
*/
public $timestamps = false;
/**
* ManyToOne
* Notification -> Campagne
*/
public function campagne()
{
return $this->belongsTo('App\Campagne', 'notif_campId');
}
}