mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
27 lines
496 B
PHP
27 lines
496 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class Announcement
|
|
* @package App\Models
|
|
*
|
|
*/
|
|
class Announcement extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'announcements';
|
|
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
|
**/
|
|
public function segments(): BelongsToMany
|
|
{
|
|
return $this->BelongsToMany(Segment::class);
|
|
}
|
|
}
|