git add .

git commit  "add tours pages, components and show views"
This commit is contained in:
2026-08-17 11:36:19 +03:30
parent e99c340f1e
commit 970786ae94
15 changed files with 595 additions and 249 deletions
+7 -3
View File
@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\Model;
/**
* Class Tour
*
*
* @property int $id
* @property string $title
* @property string $summary
@@ -24,7 +24,7 @@ use Illuminate\Database\Eloquent\Model;
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
*
* @property Collection|Comment[] $comments
*
* @package App\Models
@@ -56,4 +56,8 @@ class Tour extends Model
{
return $this->hasMany(Comment::class);
}
}
public function travelType()
{
return $this->belongsTo(TravelType::class);
}
}