36 lines
780 B
PHP
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();
|
|
}
|
|
}
|