<?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);
    }
}
