20 lines
568 B
PHP
20 lines
568 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
||
|
class Placemark extends Model
|
||
|
{
|
||
|
use HasFactory, SoftDeletes;
|
||
|
|
||
|
protected $fillable = ['sequence_number', 'name_it', 'name_en', 'description_it', 'description_en', 'latitude', 'longitude'];
|
||
|
|
||
|
public function routeSportDetailPlacemark()
|
||
|
{
|
||
|
return $this->belongsToMany(RouteSportDetails::class, 'route_sport_detail_placemark', 'placemark_id', 'route_sport_detail_id');
|
||
|
}
|
||
|
}
|