Skip to content

Commit 9cd28c8

Browse files
committed
refactor: remove thumbnail relation and image_url from WorldHeritage model
1 parent 22f12dc commit 9cd28c8

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

src/app/Models/Country.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace App\Models;
44

5-
use App\Models\WorldHeritage;
65
use Illuminate\Database\Eloquent\Model;
76
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
87

src/app/Models/Image.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6-
use Illuminate\Database\Eloquent\SoftDeletes;
76

87
class Image extends Model
98
{

src/app/Models/WorldHeritage.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class WorldHeritage extends Model
3535
'longitude',
3636
'short_description',
3737
'unesco_site_url',
38-
'thumbnail_image_id',
3938
];
4039

4140
protected $hidden = [
@@ -61,10 +60,6 @@ public function images(): HasMany
6160
->orderBy('sort_order', 'asc');
6261
}
6362

64-
public function thumbnail(): BelongsTo
65-
{
66-
return $this->belongsTo(Image::class, 'thumbnail_image_id');
67-
}
6863
protected function casts(): array
6964
{
7065
return [

0 commit comments

Comments
 (0)