<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Advertisement extends Model
{
    use HasFactory;
    protected $fillable=[
        'name',
        'content',
        'user_id',
        'status',
        'start_date',
        'end_date',
        'group_id',
        'image'
        
        
    ];
    
     public function groups(){
        return $this->belongsToMany(Group::class);
    }
}
