Files
aroginhealthcare/Modules/Activity/app/Models/Activity.php
2025-08-17 16:23:14 +05:45

36 lines
780 B
PHP

<?php
namespace Modules\Activity\app\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Modules\Activity\Database\factories\ActivityFactory;
use Modules\Destination\app\Models\Destination;
class Activity extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'uuid',
'name',
'image',
'image_path',
'status',
];
public function destinations()
{
return $this->belongsToMany(Destination::class, 'activity_destination');
}
protected static function newFactory(): ActivityFactory
{
//return ActivityFactory::new();
}
}