Airport Guide Documentation

BusinessDetailsFS extends Model
in package
uses HasFactory

BusinessDetailsFS Model for managing comprehensive business details from Foursquare integration.

This model is used to create and manage detailed business information sourced from Foursquare API integration, including comprehensive business data such as location details, contact information, social media presence, ratings, and operational statistics. It provides a structured interface for storing and retrieving business-specific data such as terminal information, geographic coordinates, contact details, social media profiles, ratings, reviews, and business verification status. The model supports comprehensive business data management including Foursquare integration, location services, and business verification for enhanced airport guide platform functionality and business directory services.

Tags
used-by
SitemapController::directorySitemap()

Model to retrieve business information

used-by
TerminalController::getBusinessDetails()

Model to retrieve business information

used-by
TerminalController::showBusinessList()

Model to retrieve business information

used-by
TerminalController::showAllMaps()

Model to retrieve business information for maps

used-by
TerminalController::guideInfo()

Model to retrieve business information

Table of Contents

Properties

$ag_category  : string
$business_slug  : string
$city  : string
$closed_bucket  : string
$code_airport  : string
$country  : string
$created_at  : string
$date_closed  : string|null
$description  : string
$distance  : float
$dma  : string
$email  : string|null
$facebook  : string|null
$fax  : string|null
$fsq_id  : string
$full_address  : string
$icao_id  : string
$id  : int
$instagram  : string|null
$is_deleted  : bool
$latitude  : float
$level_name  : string
$longitude  : float
$menu  : string|null
$name  : string
$photos_count  : int
$popularity  : int
$price  : int
$rating  : float
$rating_count  : int
$review_count  : int
$state  : string
$store_id  : string
$street  : string
$taste  : string
$tel_number  : string|null
$terminal_alias  : string
$terminal_id  : int
$terminal_name  : string
$timezone  : string
$twitter  : string|null
$updated_at  : string
$verified  : bool
$website  : string|null
$zip_code  : string
$fillable  : array<string|int, mixed>
The attributes that are mass assignable for Foursquare business details records.

Methods

__construct()  : void
Initialize the BusinessDetailsFS model with the correct database table configuration.

Properties

$date_closed

public string|null $date_closed

The date when the business closed

$terminal_alias

public string $terminal_alias

The terminal alias or alternative name

$terminal_id

public int $terminal_id

The foreign key reference to the terminal

$terminal_name

public string $terminal_name

The terminal name where the business is located

$updated_at

public string $updated_at

Timestamp when the record was last updated

$zip_code

public string $zip_code

The ZIP code (note: duplicate field in fillable)

$fillable

The attributes that are mass assignable for Foursquare business details records.

protected array<string|int, mixed> $fillable = ['id', 'terminal_id', 'level_name', 'code_airport', 'terminal_name', 'description', 'name', 'email', 'fax', 'distance', 'full_address', 'street', 'city', 'terminal_alias', 'state', 'zip_code', 'zip_code', 'country', 'tel_number', 'timezone', 'latitude', 'longitude', 'dma', 'menu', 'popularity', 'price', 'rating', 'facebook', 'instagram', 'twitter', 'photos_count', 'rating_count', 'review_count', 'website', 'verified', 'store_id', 'taste', 'closed_bucket', 'date_closed', 'created_at', 'updated_at', 'fsq_id', 'icao_id', 'business_slug', 'ag_category', 'is_deleted']

This property defines the fields that can be mass-assigned when creating or updating BusinessDetailsFS records. It includes all essential Foursquare business fields such as terminal information, geographic coordinates, contact details, social media profiles, ratings, reviews, operational statistics, and business verification data. The fillable attributes ensure data integrity while allowing efficient bulk operations for comprehensive business details management including Foursquare integration, location services, and business directory functionality. Note: zip_code appears twice in the fillable array.

Methods

__construct()

Initialize the BusinessDetailsFS model with the correct database table configuration.

public __construct() : void

This function is used to create a properly configured BusinessDetailsFS model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for Foursquare business details data information, which is essential for proper business details storage and retrieval operations. The constructor dynamically assigns the table name based on the BUSINESS_DETAILS_FS configuration constant to maintain flexibility and configuration-driven behavior for Foursquare business data management.


        
On this page

Search results