20 lines
621 B
PHP
20 lines
621 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
||
|
class RouteSportDetails extends Model
|
||
|
{
|
||
|
use HasFactory, SoftDeletes;
|
||
|
|
||
|
protected $fillable = ['route_id', 'sport_id', 'short_description_it', 'short_description_en', 'gpx_path', 'distance', 'duration', 'elevation_gain', 'elevation_loss', 'altitude_max', 'altitude_min', 'difficulty_it', 'difficulty_en', 'route_type_it', 'route_type_en'];
|
||
|
|
||
|
public function sport()
|
||
|
{
|
||
|
return $this->belongsTo(Sport::class, 'sport_id');
|
||
|
}
|
||
|
}
|