*/ protected $fillable = [ 'tenant_id', 'name', 'photo', 'address', 'gps_lat', 'gps_long', 'is_available', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'gps_lat' => 'decimal:7', 'gps_long' => 'decimal:7', 'is_available' => 'boolean', ]; /** * Get the club that owns the facility. */ public function tenant(): BelongsTo { return $this->belongsTo(Tenant::class); } /** * Get the activities for the facility. */ public function activities(): HasMany { return $this->hasMany(ClubActivity::class, 'facility_id'); } }