ldc-mesbr-app/app/Notification.php
Vincent BRIDIER 203922849c
fix: PHPCBF
2025-04-03 09:30:16 +02:00

32 lines
494 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Notification extends Model
{
/**
* @var string
*/
protected $table = 'notification';
/**
* @var string
*/
protected $primaryKey = 'notif_id';
/**
* @var boolean
*/
public $timestamps = false;
/**
* ManyToOne
* Notification -> Campagne
*/
public function campagne()
{
return $this->belongsTo('App\Campagne', 'notif_campId');
}
}