. * * @link https://www.librenms.org * * @copyright 2023 Steven Wilton * @author Steven Wilton */ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; class CustomMapBackground extends BaseModel { use HasFactory; protected $primaryKey = 'custom_map_background_id'; public function map(): BelongsTo { return $this->belongsTo(CustomMap::class, 'custom_map_id'); } }