File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace App \Models ;
44
5- use App \Models \WorldHeritage ;
65use Illuminate \Database \Eloquent \Model ;
76use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
87
Original file line number Diff line number Diff line change 33namespace App \Models ;
44
55use Illuminate \Database \Eloquent \Model ;
6- use Illuminate \Database \Eloquent \SoftDeletes ;
76
87class Image extends Model
98{
Original file line number Diff line number Diff 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 [
You can’t perform that action at this time.
0 commit comments