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
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
$ag_category
public
string
$ag_category
The airport guide category
$business_slug
public
string
$business_slug
The URL slug for the business
$city
public
string
$city
The city name
$closed_bucket
public
string
$closed_bucket
The closed status bucket
$code_airport
public
string
$code_airport
The airport code identifier
$country
public
string
$country
The country name
$created_at
public
string
$created_at
Timestamp when the record was created
$date_closed
public
string|null
$date_closed
The date when the business closed
$description
public
string
$description
The business description or details
$distance
public
float
$distance
The distance from a reference point
$dma
public
string
$dma
The Designated Market Area code
public
string|null
$email
The business email address
public
string|null
$facebook
The Facebook profile URL
$fax
public
string|null
$fax
The business fax number
$fsq_id
public
string
$fsq_id
The Foursquare identifier
$full_address
public
string
$full_address
The complete business address
$icao_id
public
string
$icao_id
The ICAO airport identifier
$id
public
int
$id
The unique identifier for the business details record
public
string|null
$instagram
The Instagram profile URL
$is_deleted
public
bool
$is_deleted
The deletion status flag
$latitude
public
float
$latitude
The geographic latitude coordinate
$level_name
public
string
$level_name
The level name within the terminal
$longitude
public
float
$longitude
The geographic longitude coordinate
$menu
public
string|null
$menu
The menu information or URL
$name
public
string
$name
The business name
$photos_count
public
int
$photos_count
The number of photos available
$popularity
public
int
$popularity
The popularity score or ranking
$price
public
int
$price
The price level indicator
$rating
public
float
$rating
The business rating score
$rating_count
public
int
$rating_count
The number of ratings received
$review_count
public
int
$review_count
The number of reviews received
$state
public
string
$state
The state name
$store_id
public
string
$store_id
The store identifier
$street
public
string
$street
The street address
$taste
public
string
$taste
The taste or cuisine type
$tel_number
public
string|null
$tel_number
The telephone number
$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
$timezone
public
string
$timezone
The timezone information
public
string|null
$twitter
The Twitter profile URL
$updated_at
public
string
$updated_at
Timestamp when the record was last updated
$verified
public
bool
$verified
The business verification status
$website
public
string|null
$website
The business website URL
$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.